You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/12/16 04:35:10 UTC

[jira] [Updated] (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:all-tabpanel ]

Justin Mclean updated FLEX-33864:
---------------------------------

    Labels: easytest  (was: )

> 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
>            Assignee: Justin Mclean
>              Labels: easytest
>         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.4#6159)