Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 4.6 (Release), Apache Flex 4.12.0
-
None
-
Windows 7 SP1 x64, Flash Builder 4.6, AIR 13.0
Description
In the code sample below, I am adding a new child to the Accordion using the button. When the child is added, the height of each existing child in the Accordion increases automatically, even though each child has a set height value.
This issue was first noticed using Adobe Flex SDK 4.6 but can also be replicated using the latest production Apache Flex 4.12.
<?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <s:layout> <s:VerticalLayout/> </s:layout> <fx:Script> <![CDATA[ import spark.components.BorderContainer; import spark.components.NavigatorContent; private function add():void { var n:NavigatorContent = new NavigatorContent(); n.height = 100; var b:BorderContainer = new BorderContainer(); b.percentHeight = 100; b.percentWidth = 100; n.addElement(b); accordion.addElement(n); } ]]> </fx:Script> <s:Button click="add()" label="ADD CHILD"/> <mx:Accordion id="accordion" width="100%"/> </s:WindowedApplication>