flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/5] git commit: [flex-asjs] [refs/heads/release0.8.0] - make sure className and new styles get applied
Date Thu, 25 May 2017 04:42:06 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/release0.8.0 0428a145c -> 8cfef0691


make sure className and new styles get applied


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7e415e0f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7e415e0f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7e415e0f

Branch: refs/heads/release0.8.0
Commit: 7e415e0f2562c7643f3ef44fa4820d5332bc0a86
Parents: f6bf8c6
Author: Alex Harui <aharui@apache.org>
Authored: Wed May 24 21:41:13 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Wed May 24 21:41:58 2017 -0700

----------------------------------------------------------------------
 .../Basic/src/main/flex/org/apache/flex/core/UIBase.as        | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7e415e0f/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
index d917b8d..d0e8528 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as
@@ -960,6 +960,11 @@ package org.apache.flex.core
                     _style.top = _y;
                 if (!isNaN(_x))
                     _style.left = _x;
+				COMPILE::JS
+				{
+					if (parent)
+						ValuesManager.valuesImpl.applyStyles(this, _style);
+				}
                 dispatchEvent(new Event("stylesChanged"));
             }
         }
@@ -1293,6 +1298,8 @@ package org.apache.flex.core
 			
             COMPILE::JS
             {
+				if (!_className && typeNames)
+					setClassName(typeNames);
                 if (style)
                     ValuesManager.valuesImpl.applyStyles(this, style);
             }


Mime
View raw message