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/24 00:37:51 UTC
[jira] [Comment Edited] (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=13856020#comment-13856020 ]
Justin Mclean edited comment on FLEX-33864 at 12/23/13 11:37 PM:
-----------------------------------------------------------------
Issue is that that the datagrid skin counts as an element when you have an empty datagrid.
was (Author: jmclean):
Issue is that that the data grid skin counts as an element when you have an empty datagrid.
> 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.5#6160)