PDA

View Full Version : Collapsible ViewPort: How to resize center items width?



rule3
8 Nov 2009, 11:49 AM
Hi I have ViewPort with left bar and center bar split and it is collapsible and animCollapse is true..

In center box we have Managed IFrame..

In I frame ExtJS element like grids , panels , etc. width do not resize with animation and that looks stupid..

There is function on end of the scripts loaded to Iframe..



function resize() {
grid.setHeight(Ext.lib.Dom.getViewHeight());
grid.setWidth(Ext.lib.Dom.getViewWidth());
}
Ext.EventManager.onWindowResize(resize);


1. When I press collabse on point below or use split's drag and drop left/center box width grid do not resize on animation and resize after center/left box is resized or collabsed..

http://www.extjs.com/forum/attachment.php?attachmentid=17089&d=1257709801

How do I but that grid dynamically to resize with animation or split's resize?