Friday, April 6, 2007

FAQ.percentWidth/PercentHeight



is the same as:

myCanvas.percentWidth = 100;

The same goes for height and percentHeight. This can be used on any UIComponent.

IMPORTANT:
If you set percentWidth and percentHeight of a UIComponent whose's parent is not a Container these properties may not effect the size of the UIComponent. This is because
UIComponents do not actually check percentWidth and percentHeight. Instead the UIComponent's parent Container checks it's childrens' percentWidth and percentHeight and resizes the children accordingly.

No comments:

"Flex", "ActionScript" and possibly "MXML" are probably trademarks of Adobe Systems Incorporated.
"Adobe" is a trademark of Adobe Systems Incorporated.
This site is in no way endorsed or sponsored by Adobe Systems Incorporated.
Content Copyright © 2007 Daniel Freiman.
Site Design Copyright by its copyright holder.
The Flex Non-Docs reserves the right to remove comments for any reason.
All ActionScript and MXML code (and ONLY ActionScript and MXML code) on this website is available under the MIT License.