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 2020/01/15 05:51:26 UTC

[royale-asjs] branch develop updated: handle scrollbars that are always visible. Should fix #679

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 f5f2436  handle scrollbars that are always visible.  Should fix #679
f5f2436 is described below

commit f5f24366cc687ae9df379b9a1283330d9578ba40
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Jan 14 21:51:12 2020 -0800

    handle scrollbars that are always visible.  Should fix #679
---
 .../royale/mx/controls/beads/layouts/AdvancedDataGridLayout.as    | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/layouts/AdvancedDataGridLayout.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/layouts/AdvancedDataGridLayout.as
index d568241..df9fc82 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/layouts/AdvancedDataGridLayout.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/layouts/AdvancedDataGridLayout.as
@@ -181,6 +181,14 @@ package mx.controls.beads.layouts
                             listArea.element.style["overflow-x"] = "hidden";
                     }
                 }
+                COMPILE::JS
+                {
+                    if (listArea.element.offsetHeight > listArea.element.clientHeight)
+                    {
+                        // horizontal scrollbar is always shown
+                        useHeight -= listArea.element.offsetHeight - listArea.element.clientHeight;
+                    }
+                }
                 for (var i:int = 0; i < n; i++)
                 {
                     var columnList:UIBase = displayedColumns[i] as UIBase;