You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/11/02 00:36:17 UTC
[royale-asjs] branch develop updated: need to handle zero-length
dataprovider as well. Should fix #537
This is an automated email from the ASF dual-hosted git repository.
aharui 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 9e2cd77 need to handle zero-length dataprovider as well. Should fix #537
9e2cd77 is described below
commit 9e2cd77047faa8b0e597c6ebb28e4d416963038a
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Nov 1 17:35:54 2019 -0700
need to handle zero-length dataprovider as well. Should fix #537
---
.../projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridView.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridView.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridView.as
index 94707d2..41e9fb7 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridView.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridView.as
@@ -100,7 +100,7 @@ package mx.controls.beads
override protected function handleDataProviderChanged(event:Event):void
{
var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as IDataGridModel;
- if (sharedModel.columns == null && sharedModel.dataProvider != null)
+ if (sharedModel.columns == null && sharedModel.dataProvider != null && sharedModel.dataProvider.length > 0)
{
generateCols();
createLists();