[
https://issues.apache.org/jira/browse/FLEX-34080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921379#comment-13921379
]
Justin Mclean commented on FLEX-34080:
--------------------------------------
Unable to reproduce:
{code}
<?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"
xmlns:mx="library://ns.adobe.com/flex/mx"
initialize="init(event)">
<s:layout>
<s:VerticalLayout />
</s:layout>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.events.FlexEvent;
import spark.collections.Sort;
[Bindable] public var data:ArrayCollection = new
ArrayCollection(["one","two","three","four","five","six","seven","eight","nine","ten"]);
protected function init(event:FlexEvent):void
{
data.sort = new Sort();
data.refresh();
}
]]>
</fx:Script>
<s:List dataProvider="{data}" useVirtualLayout="true" />
<s:Button click="data.refresh()" />
</s:Application>
{code}
> Arraycollection index turns upside down when refresh
> ----------------------------------------------------
>
> Key: FLEX-34080
> URL: https://issues.apache.org/jira/browse/FLEX-34080
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: List
> Affects Versions: Apache Flex 4.11.0
> Environment: Windows 7 64bit, Flash Builder 4.6
> Reporter: victor yew
> Assignee: Justin Mclean
> Labels: easyfix
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The spark list turns upside down when arraycollection.refresh() is called.
> This only happen when usevirtuallayout is set to true.
--
This message was sent by Atlassian JIRA
(v6.2#6252)