flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLEX-34657) SelectedIndices order is messed up
Date Sat, 27 Dec 2014 04:49:13 GMT

    [ https://issues.apache.org/jira/browse/FLEX-34657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14259300#comment-14259300
] 

Justin Mclean edited comment on FLEX-34657 at 12/27/14 4:48 AM:
----------------------------------------------------------------

The patch/fix fails to fix the issue so reopening bug. If you select first item in the list,
hold down shift and click on the another item, the indexes are still reversed.


was (Author: jmclean):
The patch fails to fix the issue so reopening bug. If you select first item in the list, hold
down shift and click on the another item, the indexes are reversed.

> SelectedIndices order is messed up
> ----------------------------------
>
>                 Key: FLEX-34657
>                 URL: https://issues.apache.org/jira/browse/FLEX-34657
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: List
>    Affects Versions: Apache Flex 4.13.0
>            Reporter: Chris Velevitch
>            Assignee: Erik de Bruin
>             Fix For: Apache Flex 4.14.0
>
>         Attachments: Main.mxml
>
>
> The order of the existing selected indices is reversed each time a item is selected or
deselected.
> In spark.components.list.as, the function calculateSelectedIndices at line 1646, the
loop is using splice to rebuild the selected indices. This is reversing the order of the previously
selected indices before adding the new item. The loop should be using push to preserve the
original order.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message