[
https://issues.apache.org/jira/browse/FLEX-33866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838688#comment-13838688
]
Mario Specht commented on FLEX-33866:
-------------------------------------
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)