This is an automated email from the ASF dual-hosted git repository.
piotrz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new a764489fd7 MX ADG: Bring back currentIndex initialization when items
are created
a764489fd7 is described below
commit a764489fd7632201c4804e02ac44d5a141a64010
Author: Piotr Zarzycki <[email protected]>
AuthorDate: Wed Apr 20 10:19:52 2022 +0200
MX ADG: Bring back currentIndex initialization when items are created
---
.../DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
index da146c32bc..7d28fd2c63 100644
---
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
+++
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
@@ -78,8 +78,9 @@ package mx.controls.advancedDataGridClasses
return;
resetCollectionCursor();
- currentIndex = -1;
+ currentIndex = (dp.length > 0) ? 0 : -1;
+ //sendStrandEvent(_strand, "itemsCreated");
super.dataProviderChangeHandler(event);
}