You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/03/06 10:55:15 UTC
[royale-asjs] branch develop updated: jewel-datagrid: need recover
percentage height when removed/added rows at runtime
This is an automated email from the ASF dual-hosted git repository.
carlosrovira 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 a6205e4 jewel-datagrid: need recover percentage height when removed/added rows at runtime
a6205e4 is described below
commit a6205e436a915b15a3cda8cdc80c39b1d61fedf0
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Mar 6 11:55:03 2020 +0100
jewel-datagrid: need recover percentage height when removed/added rows at runtime
---
.../royale/org/apache/royale/jewel/beads/layouts/DataGridLayout.as | 3 +++
1 file changed, 3 insertions(+)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/DataGridLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/DataGridLayout.as
index ada854b..77159d8 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/DataGridLayout.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/DataGridLayout.as
@@ -135,6 +135,9 @@ package org.apache.royale.jewel.beads.layouts
if(model.dataProvider && isNaN(datagrid.percentHeight) && (model.dataProvider.length * presentationModel.rowHeight) > listArea.height)
{
columnList.height = NaN;
+ } else
+ {
+ columnList.percentHeight = 100;
}
//temporal- if only one isNaN(columnDef.columnWidth) make it true so widthType = ButtonBarModel.PIXEL_WIDTHS