David Reade created FLEX-34246:
----------------------------------

             Summary: Height of each NavigatorContent child increases when new 
child created
                 Key: FLEX-34246
                 URL: https://issues.apache.org/jira/browse/FLEX-34246
             Project: Apache Flex
          Issue Type: Bug
          Components: mx: Accordion, Spark: NavigatorContent
    Affects Versions: Apache Flex 4.12.0, Adobe Flex SDK 4.6 (Release)
         Environment: Windows 7 SP1 x64, Flash Builder 4.6, AIR 13.0
            Reporter: David Reade


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.

{code}
<?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>
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to