In something like an HBOX making it non-visible does not remove its layout footprint. So the hbox would still have a big blank spot there.
-M@ --- In flexcoders@yahoogroups.com, "Daniel Freiman" <[EMAIL PROTECTED]> wrote: > > 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? > > > > > > >