At 01:49 AM 3/2/2005, you wrote:
Matt -

Thanks - that was it. A stray "height=100%" had crept into one of my components. Removing it fixed the problem.

- Tom

I don't have time to experiment, but maybe if you specify minHeight on the child panels and don't specify height they will start sizing according to their children?

Matt



From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 1:58 PM
To: [email protected]
Subject: [flexcoders] resizing a panel

The undocumented ViewStack resizeToContent property works really well. Is
there a way to achieve the same effect for Panels?

I have a container Panel that holds several other Panels as children. In
each of child Panels are a number of objects that can be open or closed:
mainly VBoxes whose heights I'm toggling between 0 and 100%. The VBoxes
contain objects such as datagrids and graphs that I'm showing and hiding
with this toggling effect. This all works fine, except that the subpanels
always try to fill up100% of the container panel. Is there a way to tell
the subpanels to set their heights to the combined heights of their contents?

I hope I've explained this properly.

Thanks!

- Tom








Reply via email to