flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Specht (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLEX-33866) spark DataGrid drag move not supported
Date Wed, 04 Dec 2013 07:41:37 GMT

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

Mario Specht edited comment on FLEX-33866 at 12/4/13 7:39 AM:
--------------------------------------------------------------

Further investigations lead me to LayoutBase where the following methods do not seem to be
fully implemented:

    protected function calculateDropIndex(x:Number, y:Number):int
    {
        // Always add to the end by default.
        return target.numElements;
    }    

    protected function calculateDropIndicatorBounds(dropLocation:DropLocation):Rectangle
    {
        return null;
    }
    
these cause problems for showing the dropindicator and dropped items and target.numElements
always returns 1. That's why items are always moved to position 1 in the dataprovider of the
grid.


was (Author: mspecht):
Further investigations lead me to LayoutBase where the following methods do not seem to be
fully implemented:

    protected function calculateDropIndex(x:Number, y:Number):int
    {
        // Always add to the end by default.
        return target.numElements;
    }    

    protected function calculateDropIndicatorBounds(dropLocation:DropLocation):Rectangle
    {
        return null;
    }
    
these cuase problems for showing the dropindicator and dropped items and target.numElements
always returns 1. That's why items are always moved to position 1 in the dataprovider of the
grid.

> spark DataGrid drag move  not supported
> ---------------------------------------
>
>                 Key: FLEX-33866
>                 URL: https://issues.apache.org/jira/browse/FLEX-33866
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: DataGrid
>    Affects Versions: Apache Flex 4.11.0
>         Environment: AIR
>            Reporter: Mario Specht
>         Attachments: TestDDDataGrid.fxp, TestDDDataGrid2.fxp
>
>
> When draggin and and dropping items in a spark DataGrid in order to sort them, no dropindicator
is shown and it is not possible to drop the items on a specified position. They alsways seem
to be dropped before or after the selected item. 
> See attached example TestDDDataGrid
> See example TestDDDataGrid2 for comparison. In TestDDDataGrid a mx:DataGrid is used.
A dropindicator is shown and reordering is possible without any issues.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message