-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emulation - percentHeight behaves differently #1206
Comments
I will look into this, I have spent a great deal of time working on improving the emulation layouts (and will create a new branch for review soon). IIRC the Box layouts have a branch for handling a 'single' child situation (presumably optimized compared to the multiple children scenario) and I suspect the issue is in this code. |
I looked into this. The reason that the Flex version of the BoxLayout 'breaks' out of the percent-based sizing is because of measuredMinHeight being 1800 at the HBox level and downwards during layout phase (similar to the issue we saw with measuredMinHeight in the PanelInternalContainer). If you swap the mx:Box items to mx:Canvas items then the behavior in Flex is as it is currently in Royale with mx:Box. I don't really understand why a mx:Box with a single child is behaving so differently to a mx:Canvas with a single child in Flex (with the same percent-based sizing)... and whether this is intentional or is a bug. |
It's been a while for me as well since I got into the docs relating to Flex's layout. This excerpt from Flex_4.6_help.pdf may provide a clue Determining container size |
In Flex, setting height of 100% on object A does not necessarily mean it stretches to the size of its container B, whereas in Royale this is always the case.
In this example
The Flex example will show all canvases (red, green, and blue) stretching to a height of 1800 pixels, but in Royale, only the green canvas is sized to 1800 pixels, whereas the rest remain the size of the screen.
The text was updated successfully, but these errors were encountered: