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/03/25 06:33:25 UTC

[royale-asjs] 01/03: fix visibility

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

commit b7fe798a1cf0d32781c30b281631a39d41c61840
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Mar 24 23:31:35 2020 -0700

    fix visibility
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index d3e963e..8653c40 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -5265,7 +5265,7 @@ COMPILE::JS
                 } 
                 else 
                 {
-                    positioner.style.visibility = 'visible';
+                    positioner.style.visibility = null;
                 }
             }
         }
@@ -6094,7 +6094,7 @@ COMPILE::JS
     {
         if (!positioner.style.visibility) return true;
         
-        return positioner.style.visibility == 'visible';
+        return positioner.style.visibility != 'hidden';
     }
     
     COMPILE::JS
@@ -6111,7 +6111,7 @@ COMPILE::JS
             } 
             else 
             {
-                positioner.style.visibility = 'visible';
+                positioner.style.visibility = null;
                 dispatchEvent(new Event('show'));
             }
             dispatchEvent(new Event('visibleChanged'));