And includeInLayout = false;

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Friday, December 28, 2007 12:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] removing component height

 

component.explicitHeight = NaN;

is there a reason why you're setting height to 0 instead of setting
visible to false?

- Dan Freiman

On Dec 28, 2007 12:46 PM, Matt Maher < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

I have a thing I bump into from time to time and I know there justMUST 
be a solution for:

Sometimes I want to leave a visual component on the screen but set its 
height to "0" explicitly, so that it takes up no space. Then later I 
want to say "disregard my '0' and measure yourself".

How do I (in essence) remove that explicit height setting and allow the 
component to set its own height?

In action script I cannot seem to say
component.height = null;
component.invalidateDisplayList();

Anyone have a nice simple trick?

 

 

Reply via email to