PDA

View Full Version : Collapse question



woocash_k
23 Nov 2007, 6:45 AM
Hi, I was wondering if it's possible to make a Window collapsible but not fully. What I want to achieve is to collapse a window so there would be 10% of its contents still visible. Is it possible.

efege
23 Nov 2007, 7:20 AM
Sure, it's possible. This is a quick test to start playing:



win = new Ext.Window({
height: 300,
width: 500,
tools: [{
id: 'toggle',
handler: function(event, toolEl, win){
win.setHeight(win.getSize().height/6);
win.tools.toggle.hide();
}
}],
renderTo: document.body
});
win.show();


Now you need to add the "expand" behavior...