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 2018/02/02 22:09:09 UTC

[royale-asjs] 06/14: handle display specified in stylesheets

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 <ah...@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
aharui@apache.org.