It depends on when you ask.  Components have a multi-stage validation
mechanism.  Their properties get set in stage1, measured in stage2,
layed out in stage 3.  Until measurement, they are zero width/height

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: Monday, March 26, 2007 1:09 PM
To: [email protected]
Subject: [flexcoders] Custom Component Width when 100%?



I created a custom component that works great when the width is
specified. However, when I try to set the width to a percent (of the
parent) it returns 0. How to I reference the parent's width? I tried
getExplicitOrMeasuredWidth but it didn't work.

Thanks in advance for the help.



 

Reply via email to