Hi Cosma,

If you do something like the following you, you will re-set the width of a 
component to it's 
original measured size.

myComponent.width = myComponent.measuredWidth;

Hope this helps!

Ryan

--- In [email protected], "Cosma" <[EMAIL PROTECTED]> wrote:
>
> Hi flexcoders out there,
> 
> I'm facing a simple problem. In Flex, containers such as Panel usually
> layout themself looking at their children(automatically choosing an
> appropriate width and height). Is there any way to restore this
> behaviour after setting an explicit height in ActionScript?
> 
> Example:
> 
> Think about a Panel that could resize itself to a fixed size
> (minimize) and then restore the original value. In the restore phase
> I'm currently setting the height property to the measuredMinHeight
> property value, but from this moment onward the height will not
> reflect the panel contents anymore, as it did by default.
> 
> Thanks for any hint
> Cosma
>



Reply via email to