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] [Updated] (FLEX-33864) spark DataGrid drag and drop on empty grid causes RangeError
Date Wed, 30 Oct 2013 12:08:25 GMT

     [ https://issues.apache.org/jira/browse/FLEX-33864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mario Specht updated FLEX-33864:
--------------------------------

    Attachment: TestDDDataGrid.fxp

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

Mime
View raw message