Damn! This seemingly simple item has really been a bane of mine. I 
have view stcks, and remove/add children functions in a lot of places 
I'd rather they were not.

Thank you all very much for the help on this. I jut knew there would 
be a simple answer there somewhere.

-M@


--- In flexcoders@yahoogroups.com, "rueter007" <[EMAIL PROTECTED]> wrote:
>
> Tracy is right. setting visible=false will still reserve the space
> taken by the component. You have to set both visible and
> includeInLayout properties to false so that the component does not
> take any space in the layout.
> 
> - venkat
> http://www.venkatj.com
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt" <tspratt@> wrote:
> >
> > 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 < matt@
> > <mailto:matt@> > 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