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 2014/09/25 18:04:22 UTC

[40/50] git commit: [flex-asjs] [refs/heads/develop] - handle text-align

handle text-align


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

Branch: refs/heads/develop
Commit: a3ae11ba88aec10c901f817e40744396950006b3
Parents: d53ed7d
Author: Alex Harui <ah...@apache.org>
Authored: Tue Sep 23 14:35:25 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Sep 23 15:01:32 2014 -0700

----------------------------------------------------------------------
 .../projects/FlexJSUI/src/org/apache/flex/core/CSSTextField.as  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a3ae11ba/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/CSSTextField.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/CSSTextField.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/CSSTextField.as
index bc8cecf..ab40d04 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/CSSTextField.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/CSSTextField.as
@@ -82,6 +82,11 @@ package org.apache.flex.core
 			if (paddingRight == null) paddingRight = padding;
 			tf.leftMargin = paddingLeft;
 			tf.rightMargin = paddingRight;
+            var align:Object = ValuesManager.valuesImpl.getValue(sp, "text-align");
+            if (align == "center")
+                tf.align = "center";
+            else if (align == "right")
+                tf.align = "right";
 
 			defaultTextFormat = tf;
 			super.text = value;