[
https://issues.apache.org/jira/browse/FLEX-33840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean resolved FLEX-33840.
----------------------------------
Resolution: Fixed
Fix Version/s: Apache Flex 4.12.0
> Spark DataGrid calculateDropLocation returns 1 with an empty dataProvider
> -------------------------------------------------------------------------
>
> Key: FLEX-33840
> URL: https://issues.apache.org/jira/browse/FLEX-33840
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: DataGrid
> Affects Versions: Apache Flex 4.10.0
> Reporter: Micha Pooh
> Labels: easyfix, easytest
> Fix For: Apache Flex 4.12.0
>
>
> Try to drop an item to a spark:DataGrid witch has no data (empty
> dataProvider). The application throws an error (out of range 1)
> This happens because the calculation for the dropIndex is false
> (returns 1 - should be 0)
> It seems that this happens because the Grid Skin returns also 1 for his
> numElements property .
> (see grid.layout.calculateDropLocation(event) in the DataGrids
> calculateDropLocation)
>
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)