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 <[email protected]>
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