You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Patrick Buchheit (JIRA)" <ji...@apache.org> on 2013/06/28 14:51:19 UTC
[jira] [Commented] (FLEX-28132) Wrong element order when using
SkinnableContainer and states
[ https://issues.apache.org/jira/browse/FLEX-28132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695424#comment-13695424 ]
Patrick Buchheit commented on FLEX-28132:
-----------------------------------------
This behaviour also occurs when a SkinableContainer is added to the controlBarContent of a Panel or TitleWindow. Elements placed inside the SkinnableContainer and controlled by view states will be displayed in the wrong order. From what I can tell, it looks like there is a race condition that causes the overrides from the view states to be applied before the parent component (the panel in this case) has all of it's child elements set.
> Wrong element order when using SkinnableContainer and states
> ------------------------------------------------------------
>
> Key: FLEX-28132
> URL: https://issues.apache.org/jira/browse/FLEX-28132
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: SkinnableContainer
> Affects Versions: Adobe Flex SDK 4.5.1 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s): Windows 7
> Language Found: English
> Reporter: Adobe JIRA
>
> When I use a descendant of the SkinnableContainer (eg BorderContainer) which itself is included or excluded in a state, the child elements in the default state appears in incorrect order (Label "B" before Label "A").
> This problem disappears when using a Group instead of BorderContainer, or when the container itself is not included or excluded in a state, or when states changes forth and back.
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
> <s:states>
> <s:State name="state1" />
> <s:State name="state2" />
> </s:states>
> <s:VGroup>
> <s:BorderContainer includeIn="state1,state2">
> <s:layout>
> <s:HorizontalLayout paddingLeft="10" paddingTop="10" />
> </s:layout>
> <s:Label text="A"/>
> <s:Label text="B" includeIn="state1" />
> </s:BorderContainer>
> <s:Button label="state" click="currentState = currentState == 'state1' ? 'state2' : 'state1';" />
> </s:VGroup>
> </s:Application>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira