You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by hu...@apache.org on 2021/12/05 11:37:41 UTC
[royale-asjs] branch develop updated: VirtualDataGrid was showing a single record when using dynamic height (percentage instead of fixed value)
This is an automated email from the ASF dual-hosted git repository.
hugoferreira 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 1aa26a1 VirtualDataGrid was showing a single record when using dynamic height (percentage instead of fixed value)
1aa26a1 is described below
commit 1aa26a1f916953ab0870caa0755ad419d09c1979
Author: Hugo Ferreira <hf...@solidsoft.pt>
AuthorDate: Sun Dec 5 11:38:10 2021 +0000
VirtualDataGrid was showing a single record when using dynamic height (percentage instead of fixed value)
---
.../org/apache/royale/jewel/beads/views/VirtualDataGridView.as | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/VirtualDataGridView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/VirtualDataGridView.as
index 3cca9b3..ff00f24 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/VirtualDataGridView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/VirtualDataGridView.as
@@ -45,7 +45,10 @@ package org.apache.royale.jewel.beads.views
}
override protected function setColumnHeight(column:StyledUIBase):void {
- column.height = _dg.height - header.height;
+ if (_dg.height == 1)
+ column.percentHeight = 100;
+ else
+ column.height = _dg.height - header.height;
}
}
}
\ No newline at end of file