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/10/04 18:43:34 UTC
[royale-asjs] branch develop updated: jewel-list: fix an issue wirh
rowHeight (fix #916)
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 6c5b4e3 jewel-list: fix an issue wirh rowHeight (fix #916)
6c5b4e3 is described below
commit 6c5b4e37c9352edd48555d47e979837d98ea4978
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Oct 4 20:43:23 2020 +0200
jewel-list: fix an issue wirh rowHeight (fix #916)
---
.../src/main/royale/org/apache/royale/jewel/beads/views/ListView.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as
index dc8dba5..dba8cc4 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as
@@ -201,7 +201,7 @@ package org.apache.royale.jewel.beads.views
{
var rowHeight:Number;
// all items renderers with same height
- rowHeight = isNaN(pm.rowHeight) ? ListPresentationModel.DEFAULT_ROW_HEIGHT : rowHeight;
+ rowHeight = isNaN(pm.rowHeight) ? ListPresentationModel.DEFAULT_ROW_HEIGHT : pm.rowHeight;
totalHeight = listModel.dataProvider.length * rowHeight - scrollArea.clientHeight;
scrollArea.scrollTop = Math.min(index * rowHeight, totalHeight);