When are you looking at those properties?  measuredWidth/Height don't get set 
until the measure() method is called.  If they stay at 0, then the component 
will not have any size.  Did you set %width/height instead?  Maybe we need to 
see the code.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of flexwdw
Sent: Friday, September 11, 2009 10:54 AM
To: [email protected]
Subject: [flexcoders] Re: HBox not sizing properly...how to kick it in the head



Thanks for the reply, Alex.

measuredWidth & measuredHeight are 0.

explicitWidth & explicitHeight are NaN.

The parameters are both 0.

The parent that this guy is getting added to is UIComponent (which happens to 
be a complex item renderer), I'm not sure if that could be playing into this?

Out of curiosity, I overrode height, explictHeight and measuredHeight in the 
component (my class that extends Hbox) and set a breakpoint in each of 
them--they never get called. The width and height of this component is never 
explicitly set because I want it to be as big as the HBox.

thanks!

--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, Alex 
Harui <aha...@...> wrote:
>
> In updateDisplayList, see if the parameters are 0. If they are, check 
> measuredWIdth/Height and explicitWIdth/Height to see if either are 0. It 
> sounds like explicitWIdth/Height may have gotten set to 0 somewhere

Reply via email to