flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [40/50] git commit: [flex-asjs] [refs/heads/develop] - handle text-align
Date Thu, 25 Sep 2014 16:04:22 GMT
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 <aharui@apache.org>
Authored: Tue Sep 23 14:35:25 2014 -0700
Committer: Alex Harui <aharui@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;


Mime
View raw message