You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Micha Pooh (JIRA)" <ji...@apache.org> on 2013/10/30 15:45:26 UTC
[jira] [Commented] (FLEX-33864) spark DataGrid drag and drop on
empty grid causes RangeError
[ https://issues.apache.org/jira/browse/FLEX-33864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13809164#comment-13809164 ]
Micha Pooh commented on FLEX-33864:
-----------------------------------
same issue as [FLEX-33840]
https://issues.apache.org/jira/browse/FLEX-33840
> spark DataGrid drag and drop on empty grid causes RangeError
> ------------------------------------------------------------
>
> Key: FLEX-33864
> URL: https://issues.apache.org/jira/browse/FLEX-33864
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: DataGrid
> Affects Versions: Apache Flex 4.11.0
> Reporter: Mario Specht
> Attachments: TestDDDataGrid.fxp
>
>
> I found a problem while dragging an item from one grid to another grid which has no items.
> As far as I understand the code the calculated dropIndex in LayoutBase should be 0 and it is 1. The method looks like this:
> protected function calculateDropIndex(x:Number, y:Number):int
> {
> // Always add to the end by default.
> return target.numElements;
> }
> If there is already an item in the target DataGrid the problem does not occur.
> Also headers are not shown in the empty grid
> Sample atttached
--
This message was sent by Atlassian JIRA
(v6.1#6144)