momesana
19 Oct 2010, 1:46 PM
Hi,
why is the following change of width not animated in ST though similiar code is animated in Ext js:
Ext.setup({
fullscreen: true,
statusBarStyle: 'black-translucent',
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: true,
onReady: function() {
var cnt = new Ext.Container({
html: '<div style="background:white; width: 300px; height:300px;">Some text</div>',
fullscreen: true
});
var el = cnt.getEl().down('div');
el.on('mouseover', function() {
el.setWidth(600, true);
});
el.on('mouseout', function() {
el.setWidth(300, true)
}, el);
}
});
Ext.Element's documentation explicitly lists an example of changing the width in an animated way. Then further down, the documentation of the setWidth() method does not list the optional Boolean/Object parameter. In other words the documentation is a mess :-(. Any ideas how I can achieve a change of opacity or size in an animated way?
Thanks in advance
why is the following change of width not animated in ST though similiar code is animated in Ext js:
Ext.setup({
fullscreen: true,
statusBarStyle: 'black-translucent',
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: true,
onReady: function() {
var cnt = new Ext.Container({
html: '<div style="background:white; width: 300px; height:300px;">Some text</div>',
fullscreen: true
});
var el = cnt.getEl().down('div');
el.on('mouseover', function() {
el.setWidth(600, true);
});
el.on('mouseout', function() {
el.setWidth(300, true)
}, el);
}
});
Ext.Element's documentation explicitly lists an example of changing the width in an animated way. Then further down, the documentation of the setWidth() method does not list the optional Boolean/Object parameter. In other words the documentation is a mess :-(. Any ideas how I can achieve a change of opacity or size in an animated way?
Thanks in advance