You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pi...@apache.org on 2019/01/30 09:48:42 UTC

[royale-asjs] branch develop updated: Revert "Jewel Group: Fix dynamic adding Horizontal/Vertical layout"

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

piotrz 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 365bd29  Revert "Jewel Group: Fix dynamic adding Horizontal/Vertical layout"
365bd29 is described below

commit 365bd2936e3f58f8fb639a2cc6be9457d1b44071
Author: Piotr Zarzycki <pi...@gmail.com>
AuthorDate: Wed Jan 30 10:48:13 2019 +0100

    Revert "Jewel Group: Fix dynamic adding Horizontal/Vertical layout"
    
    This reverts commit 17bfa8b1b98c4c57d2961ee3f183aa1b6d0139ff.
---
 .../royale/jewel/beads/layouts/SimpleHorizontalLayout.as   | 14 ++------------
 .../royale/jewel/beads/layouts/SimpleVerticalLayout.as     | 14 ++------------
 2 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleHorizontalLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleHorizontalLayout.as
index b8a7d7f..3ec3ce5 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleHorizontalLayout.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleHorizontalLayout.as
@@ -79,21 +79,11 @@ package org.apache.royale.jewel.beads.layouts
 			COMPILE::JS
 			{
 				if (hostClassList.contains("layout"))
-                {
-                    hostClassList.remove("layout");
-                }
+					hostClassList.remove("layout");
 				hostClassList.add("layout");
-
 				if(hostClassList.contains("horizontal"))
-                {
-                    hostClassList.remove("horizontal");
-                }
+					hostClassList.remove("horizontal");
 				hostClassList.add("horizontal");
-
-                if(hostClassList.contains("basic"))
-                {
-                    hostClassList.remove("basic");
-                }
 			}
 		}
 
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleVerticalLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleVerticalLayout.as
index e97db0c..938cc6b 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleVerticalLayout.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleVerticalLayout.as
@@ -80,21 +80,11 @@ package org.apache.royale.jewel.beads.layouts
 			COMPILE::JS
 			{
 				if (hostClassList.contains("layout"))
-                {
-                    hostClassList.remove("layout");
-                }
+					hostClassList.remove("layout");
 				hostClassList.add("layout");
-
 				if(hostClassList.contains("vertical"))
-                {
-                    hostClassList.remove("vertical");
-                }
+					hostClassList.remove("vertical");
 				hostClassList.add("vertical");
-
-				if(hostClassList.contains("basic"))
-				{
-                    hostClassList.remove("basic");
-				}
 			}
 		}