You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Alexandre Barreiros <al...@arealmedia.com> on 2013/11/26 13:52:54 UTC
Accordion Problem
Hi All,
I'm trying to use the accordion component, i know that the accordion is
still on experimental, but i'm currently migrating an big app from Flex
3 to Flex 4 and i need this component. My problem is, when i enter the
accordion i see all the children for the other index that is not the
first child, please see the code in attach
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
<http://ns.adobe.com/mxml/2009%22>
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="955" minHeight="600"
xmlns:ns="http://flex.apache.org/experimental/ns"
<http://flex.apache.org/experimental/ns%22> xmlns:local="*">
<ns:Accordion width="100%" height="100%" creationPolicy="all"
top="50" left="50" right="50">
<s:NavigatorContent width="100%" height="100%" label="A
Parent" minWidth="0" minHeight="0">
<s:Group width="100%" height="100%">
<s:Rect width="100%" height="100%">
<s:fill>
<s:SolidColor
color="#ff0000"/>
</s:fill>
</s:Rect>
<s:VGroup width="100%" height="100%">
<s:Button label="A BTN1"/>
<s:Button label="A BTN2"/>
</s:VGroup>
</s:Group>
</s:NavigatorContent>
<s:NavigatorContent width="100%" height="100%" label="B
Parent" minWidth="0" minHeight="0">
<s:Group width="100%" height="100%">
<s:Rect width="100%" height="100%">
<s:fill>
<s:SolidColor
color="#00FF00"/>
</s:fill>
</s:Rect>
<s:VGroup width="100%" height="100%"
left="50">
<s:Button label="B BTN1"/>
<s:Button label="B BTN2"/>
</s:VGroup>
</s:Group>
</s:NavigatorContent>
<s:NavigatorContent width="100%" height="100%" label="C
Parent" minWidth="0" minHeight="0">
<s:Group width="100%" height="100%">
<s:Rect width="100%" height="100%">
<s:fill>
<s:SolidColor
color="#0000FF"/>
</s:fill>
</s:Rect>
<s:VGroup width="100%" height="100%"
left="100">
<s:Button label="C BTN1"/>
<s:Button label="C BTN2"/>
</s:VGroup>
</s:Group>
</s:NavigatorContent>
</ns:Accordion>
</s:Application>
Thanks in advance if someone can help me out to find a workaround.
Best Regards
Alexandre
Re: Accordion Problem
Posted by Swen van Zanten <in...@hdsign.nl>.
There is already a ticket for this issue. [1]
There is also a temporary fix for this.
[1] https://issues.apache.org/jira/browse/FLEX-33627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829829#comment-13829829
Met vriendelijke groet,
Swen van zanten
Compuniek ICT Services
Verstuurd vanaf mijn iPhone
Op 26 nov. 2013 om 18:55 heeft "Alex Harui" <ah...@adobe.com>> het volgende geschreven:
What happens if you don't set creationPolicy="all" (which is not recommended for performance reasons)?
Either way, please file a bug so we can track this.
Thanks,
-Alex
From: Alexandre Barreiros <al...@arealmedia.com>>
Reply-To: "dev@flex.apache.org<ma...@flex.apache.org>" <de...@flex.apache.org>>
Date: Tuesday, November 26, 2013 4:52 AM
To: "dev@flex.apache.org<ma...@flex.apache.org>" <de...@flex.apache.org>>
Subject: Accordion Problem
Hi All,
I'm trying to use the accordion component, i know that the accordion is still on experimental, but i'm currently migrating an big app from Flex 3 to Flex 4 and i need this component. My problem is, when i enter the accordion i see all the children for the other index that is not the first child, please see the code in attach
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"<http://ns.adobe.com/mxml/2009%22>
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
xmlns:ns="http://flex.apache.org/experimental/ns"<http://flex.apache.org/experimental/ns%22> xmlns:local="*">
<ns:Accordion width="100%" height="100%" creationPolicy="all" top="50" left="50" right="50">
<s:NavigatorContent width="100%" height="100%" label="A Parent" minWidth="0" minHeight="0">
<s:Group width="100%" height="100%">
<s:Rect width="100%" height="100%">
<s:fill>
<s:SolidColor color="#ff0000"/>
</s:fill>
</s:Rect>
<s:VGroup width="100%" height="100%">
<s:Button label="A BTN1"/>
<s:Button label="A BTN2"/>
</s:VGroup>
</s:Group>
</s:NavigatorContent>
<s:NavigatorContent width="100%" height="100%" label="B Parent" minWidth="0" minHeight="0">
<s:Group width="100%" height="100%">
<s:Rect width="100%" height="100%">
<s:fill>
<s:SolidColor color="#00FF00"/>
</s:fill>
</s:Rect>
<s:VGroup width="100%" height="100%" left="50">
<s:Button label="B BTN1"/>
<s:Button label="B BTN2"/>
</s:VGroup>
</s:Group>
</s:NavigatorContent>
<s:NavigatorContent width="100%" height="100%" label="C Parent" minWidth="0" minHeight="0">
<s:Group width="100%" height="100%">
<s:Rect width="100%" height="100%">
<s:fill>
<s:SolidColor color="#0000FF"/>
</s:fill>
</s:Rect>
<s:VGroup width="100%" height="100%" left="100">
<s:Button label="C BTN1"/>
<s:Button label="C BTN2"/>
</s:VGroup>
</s:Group>
</s:NavigatorContent>
</ns:Accordion>
</s:Application>
Thanks in advance if someone can help me out to find a workaround.
Best Regards
Alexandre
Re: Accordion Problem
Posted by Alex Harui <ah...@adobe.com>.
What happens if you don't set creationPolicy="all" (which is not recommended for performance reasons)?
Either way, please file a bug so we can track this.
Thanks,
-Alex
From: Alexandre Barreiros <al...@arealmedia.com>>
Reply-To: "dev@flex.apache.org<ma...@flex.apache.org>" <de...@flex.apache.org>>
Date: Tuesday, November 26, 2013 4:52 AM
To: "dev@flex.apache.org<ma...@flex.apache.org>" <de...@flex.apache.org>>
Subject: Accordion Problem
Hi All,
I'm trying to use the accordion component, i know that the accordion is still on experimental, but i'm currently migrating an big app from Flex 3 to Flex 4 and i need this component. My problem is, when i enter the accordion i see all the children for the other index that is not the first child, please see the code in attach
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"<http://ns.adobe.com/mxml/2009%22>
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
xmlns:ns="http://flex.apache.org/experimental/ns"<http://flex.apache.org/experimental/ns%22> xmlns:local="*">
<ns:Accordion width="100%" height="100%" creationPolicy="all" top="50" left="50" right="50">
<s:NavigatorContent width="100%" height="100%" label="A Parent" minWidth="0" minHeight="0">
<s:Group width="100%" height="100%">
<s:Rect width="100%" height="100%">
<s:fill>
<s:SolidColor color="#ff0000"/>
</s:fill>
</s:Rect>
<s:VGroup width="100%" height="100%">
<s:Button label="A BTN1"/>
<s:Button label="A BTN2"/>
</s:VGroup>
</s:Group>
</s:NavigatorContent>
<s:NavigatorContent width="100%" height="100%" label="B Parent" minWidth="0" minHeight="0">
<s:Group width="100%" height="100%">
<s:Rect width="100%" height="100%">
<s:fill>
<s:SolidColor color="#00FF00"/>
</s:fill>
</s:Rect>
<s:VGroup width="100%" height="100%" left="50">
<s:Button label="B BTN1"/>
<s:Button label="B BTN2"/>
</s:VGroup>
</s:Group>
</s:NavigatorContent>
<s:NavigatorContent width="100%" height="100%" label="C Parent" minWidth="0" minHeight="0">
<s:Group width="100%" height="100%">
<s:Rect width="100%" height="100%">
<s:fill>
<s:SolidColor color="#0000FF"/>
</s:fill>
</s:Rect>
<s:VGroup width="100%" height="100%" left="100">
<s:Button label="C BTN1"/>
<s:Button label="C BTN2"/>
</s:VGroup>
</s:Group>
</s:NavigatorContent>
</ns:Accordion>
</s:Application>
Thanks in advance if someone can help me out to find a workaround.
Best Regards
Alexandre