Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK 4.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Set the main application's size to 600 x 600.
2. Put a SWFLoader in a Box which is 200 x 200 and load an application (sub-app) into your main application (main app).
3. Note that the sub-app has dimensions of 198 x 198.
4. Set the sub-app's percentHeight and percentWidth to 30.
Actual Results:
It seems the sub-app calculates its new height and width from the player window's size. e.g. It is now 180 x 180. 180 is not 30% of 198. It is 30% of 600.
Expected Results:
ASDoc for percentHeight says: "Number that specifies the height of a component as a percentage of its parent's size."
Workaround (if any):
Calculate the sizes yourself and set width/height.