[flexcoders] removing component height

2007-12-28 Thread Matt Maher
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?



Re: [flexcoders] removing component height

2007-12-28 Thread Daniel Freiman
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] 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?

  



RE: [flexcoders] removing component height

2007-12-28 Thread Tracy Spratt
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?