View Full Version : Container doLayout() and setHeight()

19 Nov 2010, 6:33 AM

I have a container to which a number of panels are dynamically added and removed. The doLayout() method nicely resizes everything. However I want to limit the size of the resize i.e. if more than 3 panels are added, the container's height is locked with setHeight(). This is all fine, but when I remove the panels I want the layout manager to manage the container size again. Is there any way to just un-set the height property again? I've tried undefined, but that didn't work, the container size is locked at the set height.

Cheers in advance

19 Nov 2010, 7:40 AM
You could try (after removing panels):


19 Nov 2010, 7:47 AM
You my friend, genius.

Many thanks, works