I tried both and to no avail. It would seem the only way to do this the way I want is to iterate over the children of the container getting their height and width and adding it up to determine a measured size. In effect, I'm doing my own measure method.
At least it works and I can move forward though. :) --- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Try overriding getExplicitOrMeasuredWidth to return 100. Then maybe the > measure() method will get called. Are you waiting for validation to > occur or forcing validation before checking? > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Matt > Sent: Tuesday, November 27, 2007 11:38 AM > To: [email protected] > Subject: [flexcoders] Re: Determine measuredHeight on explicitly defined > height? > > > > Okay, just gave that a shot and didn't give me the results I was > hoping for. > > More simply put, I want the display to appear as it has been being > 100x100 but I also want to know what the size would be if I had left > the Box to do auto-sizing. I have used measuredWidth and > measuredHeight before to accomplish this, but apparently in this case > it doesn't work. > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> > , "Alex Harui" <aharui@> wrote: > > > > Don't set height, call setActualSize instead. > > > > ________________________________ > > > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of Matt > > Sent: Tuesday, November 27, 2007 9:35 AM > > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] Determine measuredHeight on explicitly defined > > height? > > > > > > > > If I create a Box and set the height 100 pixels and then check the > > measuredHeight it is always 0. I'm trying to figure out how to > > determine the "desired" height on an explicitly defined container. > > Particularly, I'd like to know when the necessary height is larger > > than the available height (thus creating scrollbars). > > > > Can someone point out how to accomplish this? > > > > Thanks > > >

