You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "tom chiverton (JIRA)" <ji...@apache.org> on 2013/11/14 14:29:25 UTC

[jira] [Commented] (FLEX-33899) DataGrid goes blank when removing last item from dataProvider

    [ https://issues.apache.org/jira/browse/FLEX-33899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13822404#comment-13822404 ] 

tom chiverton commented on FLEX-33899:
--------------------------------------

In ArrayList.removeItemAt() the underlying source is correctly updated.
On return to the button's click handler 'grid.grid.dataProvider.length' is correctly shorter.
No exceptions thrown.

Using grid.dataProvider rather than grid.grid.dataProvider doesn't help.

If you don't scroll down, all is also well.

> DataGrid goes blank when removing last item from dataProvider
> -------------------------------------------------------------
>
>                 Key: FLEX-33899
>                 URL: https://issues.apache.org/jira/browse/FLEX-33899
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: DataGrid
>    Affects Versions: Apache Flex 4.11.0, Apache Flex 4.12.0
>         Environment: Windows 7 64 bit, Adobe Air 2.6
>            Reporter: Piotr Zarzycki
>
> Spark DataGrid with requestedRowCount=5, no height and dataProvider with 6 elements go blank in the following situation:
> 1: Scroll down to the last element
> 2: Remove last element from dataProvider
> Link to example app (zip, Intellij IDEA project): http://bit.ly/19jzbYR



--
This message was sent by Atlassian JIRA
(v6.1#6144)