View Full Version : Panel Collapsed Problem

3 Oct 2014, 11:30 AM

I have a panel with "collapsed: true" so it is rendered collapsed initially. When I click on the expand tool to expand the panel, it doesn't seem to render anything. Could someone take a look at the fiddle to see if there is anything wrong with the code or is it a bug? Thanks!

Gary Schlosberg
3 Oct 2014, 12:10 PM
Thanks for the report. I don't believe this is a bug, rather your panel doesn't have a height. It seems to work if you set one for the Order 1 panel.

3 Oct 2014, 3:23 PM

Thanks for the quick response.

Well, the same code use to work in Ext 4.2. I believe setting the height may just mitigate the vbox layout resize issue.

I further reduced the sample code to exhibit this collapsed panel in vbox layout issue:

This is a very simple example with one vbox panel with 2 children panels with collapsed set to true.
Expand doesn't seem to work. I have tried setting the height of the form panel or setting flex to 1 but still no luck. Please let me know if I am doing something wrong here.
Appreciate your help regarding this issue.