actionscript - Flex 4: How to get actual width of a group when using 100% and top/bottom/left/right? -


I have an application with a width / height of 100% There are several nested groups inside me and their measurements are not all set , Instead being defined as Top = 5 or Left / Right = 10, etc.

I am trying to get the reality with one group to be 390. I have placed the SDF object size 400 with the HTML embed code, and the group is inside the second group which is width = 100%. Left = 5 in the group and right = 5, therefore the width should be 400-10. When I display the width and wide amounts of this group, the width is always 400.

I'm fairly new to Flex / Flash. I need to clearly set the width to get the width of the hair container? Is there something that I'm doing wrong?

Thank you!

Percentage size component calculation of parent updateDisplayList () , So it's only width & amp; height .

Methods can be found in getExplicitOrMeasuredWidth / Height () :

  1. Clear width / height

or

  1. When measuring width / height is set to wrap the mode, it is estimated that the measurement of the component .

if you do not plan to override the measurement or updateDisplayList you should not just use matching. .. Absolutely.


Comments