[ 
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)

Reply via email to