You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "David Reade (JIRA)" <ji...@apache.org> on 2014/04/23 10:09:16 UTC

[jira] [Issue Comment Deleted] (FLEX-34246) Height of each NavigatorContent child increases when new child created

     [ https://issues.apache.org/jira/browse/FLEX-34246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Reade updated FLEX-34246:
-------------------------------

    Comment: was deleted

(was: Sample project)

> 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: Adobe Flex SDK 4.6 (Release), Apache Flex 4.12.0
>         Environment: Windows 7 SP1 x64, Flash Builder 4.6, AIR 13.0
>            Reporter: David Reade
>         Attachments: AccordianTest.fxp
>
>
> 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)