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 objectsthat
can be open or closed:
mainly VBoxes whose heights I'm toggling between 0
and 100%. The VBoxes
contain objects such as datagrids and graphsthat
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
|