PDA

View Full Version : How to make Ext.window expand upwards



sen2011
22 Apr 2011, 8:26 AM
Can anyone help on how to make Ext.window expand upwards, if it is possible?

jay@moduscreate.com
24 Apr 2011, 6:03 AM
You're more apt to get help if you post in the proper place! What version of the framework? What do you mean by expand upwards? Do you mean increase in height? That will have to happen by moving the element upwards while simultaneously animating its expansion.

Animal
25 Apr 2011, 4:35 AM
Ext4:



new Ext.window.Window({
title: 'Test',
width: 400,
height: 200,
bbar: [{
text: 'Expand Upwards',
handler: function(b) {
var w = b.up('window'),
y = w.getPosition()[1],
h = w.getHeight();

w.animate({
to: {
y: y - 30,
height: h + 30
}
});
}
}]
}).show();