You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/05/30 19:47:58 UTC

[23/50] git commit: [flex-asjs] [refs/heads/tlf] - make sure className and new styles get applied

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/tlf
Commit: 7e415e0f2562c7643f3ef44fa4820d5332bc0a86
Parents: f6bf8c6
Author: Alex Harui <ah...@apache.org>
Authored: Wed May 24 21:41:13 2017 -0700
Committer: Alex Harui <ah...@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);
             }