royale-asjs
royale-asjs copied to clipboard
Height 100% - Child Resize Inconsistent Behavior
In this app
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.apache.org/royale/spark"
creationComplete="init()"
>
<fx:Script>
<![CDATA[
private function init():void
{
myContent.height = 200;
myContent.width = 200;
}
]]>
</fx:Script>
<s:Group id="upperContainer">
<s:Group id="bottomContainer" width="100%">
<s:BorderContainer backgroundColor="blue" id="myContent"/>
</s:Group>
</s:Group>
</s:Application>
bottomContainer height will remain 0. But if I initialize myContent with the values given in init() then it's height will be 200. It should not matter if height of myContent was given after creationComplete, or before.
This is the ChildResize branch.
Seems to work ok for me.
This seems to be fixed, at least with PR #1135 and other previous PRs (don't know which one fixed it; I guess ChildResize branch did). This shows a blue square 200x200, and DOM attributes show bottomContainer has height 200, when the width/height are set in creationComplete.
I can confirm it works in ChildResize as well. Will ChildResize or PR #1135 is merged.
Works in develop, already.