5 Replies Latest reply on Jul 25, 2011 2:51 PM by Flex harUI

    Width of Component - Regardless of Internal 'includeInLayout'


      Hey there,


      I'm curious to know if there is a way to obtain the width of a component in Flex, that will disregard the 'includeInLayout' property.




      If I have two rectangles in a component, side by side. One rectangle has a width of 10, the other 20. When I call 'width' on parent container, I get 30. But if I set the 'includeInLayout' property of second rectangle to false and call width, I assume I will only get 10.


      Is there a way to obtain the width of everything in the component, while keeping the includeInLayout property to false? In the example above, I want to keep the second rectangle out of the layout, but obtain a width of 30.