Hi, This is not right... throwing an error. Can you post the error?
The hack your co-worker gave you is definitely unnecessary. Can you post some code that will reproduce what you are trying to achieve? Setting the container's height = NaN will force the container to ditch the last height metric. When this happens the container invalidates it's size, thus calling measure(), remeasuring child preferred widths and heights. On the next validateDisplayList() call the layout manager will then set your container to it's measuredHeight since there is no explicit height set. I need to know the error you are getting. Mike On Thu, Oct 9, 2008 at 10:58 PM, Ryan <[EMAIL PROTECTED]> wrote: > thanks, but I tried "NaN" and that doesn't work- throws an error. > > One hacky solution my co-worker came up with is to use a spacer inside > the container and set the spacer's height when necessary. > > there should really be a way to remove the height property or set it > back to "auto." Anyone? Adobe? Adobe? > > > --- In [email protected] <flexcoders%40yahoogroups.com>, "Amy" > <[EMAIL PROTECTED]> wrote: > > > > --- In [email protected] <flexcoders%40yahoogroups.com>, "Ryan" > <drjimmy11@> wrote: > > > > > > I have the following quandary: > > > > > > I have a container which most of the time resizes to what it's > > > holding. Fine. > > > > > > But sometimes I need it to be an explicit height- so i set the height- > > > also fine. > > > > > > Then I need to set it back to resize to it's content. Problem. Setting > > > height to null doesn't work. How can i take away the height property > > > altogether? > > > > Just a guess, but try setting it to NaN. > > > > > -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.

