PDA

View Full Version : A panel doesn't resize properly after it has been collapsed



wenyus
31 Mar 2011, 4:39 PM
Using the beta 1 and all the previous preview releases.

The panel doesn't resize properly after it has been collapsed.

I have a panel with no size or layout specified. The panel displays and resizes correctly to start with. However once I have collapsed it, it fails to resize when the window is resized. Below are my test codes:

new Ext.container.Viewport({
items: {
xtype : "panel",
id: "mypanel",
collapsible : true,
title : "my title",
html : "panel body"
}
});

Is there any get-around?

Animal
3 Apr 2011, 11:44 AM
And as the docs emphasize, which layout scheme are you requesting that the Viewport uses to manage the size of its child items(s)?

wenyus
4 Apr 2011, 4:39 AM
The top level container of our application scrolls vertically. The panel itself may have a layout such as a "vbox" of autoSize = true.

My example uses the viewport and a simple panel to reproduce this problem. The panel resizes fine before it is collapsed. It got stuck with a width after it has collapsed.