This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit edef66c32a2c2a0926bd91620b4337814c324a9c
Author: Alex Harui <aha...@apache.org>
AuthorDate: Thu Feb 1 23:13:39 2018 -0800

    handle display specified in stylesheets
---
 .../html/beads/layouts/OneFlexibleChildVerticalLayoutForOverflow.as    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/OneFlexibleChildVerticalLayoutForOverflow.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/OneFlexibleChildVerticalLayoutForOverflow.as
index 6673f1f..8e5336b 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/OneFlexibleChildVerticalLayoutForOverflow.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/OneFlexibleChildVerticalLayoutForOverflow.as
@@ -132,7 +132,8 @@ package org.apache.royale.html.beads.layouts
 
                        for(var i:int=0; i < n; i++) {
                                var child:UIBase = contentView.getElementAt(i) 
as UIBase;
-                               if (child.element.style["display"] != "flex" && 
child.element.style["display"] != "none")
+                               var display:String = 
getComputedStyle(child.element)["display"];
+                               if (display != "flex" && display != "none")
                                        child.element.style["display"] = 
"block";
                        }
 

-- 
To stop receiving notification emails like this one, please contact
aha...@apache.org.

Reply via email to