You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/06/05 16:10:19 UTC
[jira] [Resolved] (FLEX-28668) ViewStack with one NavigatorContent
RTEs when the NavigatorContent is removed.
[ https://issues.apache.org/jira/browse/FLEX-28668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean resolved FLEX-28668.
----------------------------------
Resolution: Cannot Reproduce
Probably fixed in earlier version of SDK.
> ViewStack with one NavigatorContent RTEs when the NavigatorContent is removed.
> ------------------------------------------------------------------------------
>
> Key: FLEX-28668
> URL: https://issues.apache.org/jira/browse/FLEX-28668
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: ViewStack
> Affects Versions: Adobe Flex SDK Next
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Labels: easytest
>
> I found this bug while fixing another one. I confirmed that this is not a regression.
> Steps to reproduce:
> Run this 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"
> minWidth="955" minHeight="600"
> backgroundColor="#0000FF">
> <fx:Script>
> <![CDATA[
> import spark.layouts.supportClasses.LayoutBase;
>
> public function removeElementAtHandler():void
> {
> mainViewStack.removeElementAt(0);
> }
> ]]
> >
> </fx:Script>
>
> <s:layout>
> <s:VerticalLayout/>
> </s:layout>
>
> <s:Button id="btn1" label="removeElementAt" click="removeElementAtHandler()"/>
>
> <s:ViewStack id="mainViewStack">
> <s:NavigatorContent id="view1" label="View 1">
> <s:TextInput text="view1" width="60" />
> </s:NavigatorContent>
> </s:ViewStack>
> </s:WindowedApplication>
>
> Actual Results:
> RTE:
> RangeError: Index 0 is out of range.
> at spark.components::Group/checkForRangeError()[/Users/mvujovic/Documents/FlexSources/trunk6/frameworks/projects/spark/src/spark/components/Group.as:1355]
> at spark.components::Group/getElementAt()[/Users/mvujovic/Documents/FlexSources/trunk6/frameworks/projects/spark/src/spark/components/Group.as:1336]
> at spark.components::SkinnableContainer/getElementAt()[/Users/mvujovic/Documents/FlexSources/trunk6/frameworks/projects/spark/src/spark/components/SkinnableContainer.as:814]
> at spark.components::ViewStack/get selectedElement()[/Users/mvujovic/Documents/FlexSources/trunk6/frameworks/projects/spark/src/spark/components/ViewStack.as:357]
> at spark.components::ViewStack/instantiateSelectedChild()[/Users/mvujovic/Documents/FlexSources/trunk6/frameworks/projects/spark/src/spark/components/ViewStack.as:1001]
> at spark.components::ViewStack/commitProperties()[/Users/mvujovic/Documents/FlexSources/trunk6/frameworks/projects/spark/src/spark/components/ViewStack.as:488]
> at mx.core::UIComponent/validateProperties()[/Users/mvujovic/Documents/FlexSources/trunk6/frameworks/projects/framework/src/mx/core/UIComponent.as:8347]
> at mx.managers::LayoutManager/validateProperties()[/Users/mvujovic/Documents/FlexSources/trunk6/frameworks/projects/framework/src/mx/managers/LayoutManager.as:597]
> at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/mvujovic/Documents/FlexSources/trunk6/frameworks/projects/framework/src/mx/managers/LayoutManager.as:813]
> at mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/mvujovic/Documents/FlexSources/trunk6/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1180]
>
> Expected Results:
> No RTE.
>
> Workaround (if any):
> None
>
--
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