flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [05/15] git commit: [flex-asjs] [refs/heads/develop] - fix typo
Date Fri, 07 Aug 2015 17:12:01 GMT
fix typo


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

Branch: refs/heads/develop
Commit: 272bd48727b18b0a7f588bf5e3cb86f334a33278
Parents: a6d4152
Author: Alex Harui <aharui@apache.org>
Authored: Thu Aug 6 22:12:09 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Aug 7 10:00:57 2015 -0700

----------------------------------------------------------------------
 .../Core/as/src/org/apache/flex/core/UIButtonBase.as         | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/272bd487/frameworks/projects/Core/as/src/org/apache/flex/core/UIButtonBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/UIButtonBase.as b/frameworks/projects/Core/as/src/org/apache/flex/core/UIButtonBase.as
index 889c60a..a8c2ba9 100644
--- a/frameworks/projects/Core/as/src/org/apache/flex/core/UIButtonBase.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/UIButtonBase.as
@@ -106,10 +106,6 @@ package org.apache.flex.core
                     style = { top: value };
                 else
                     style.top = value;
-                if (!isNaN(_y))
-                    _styles.top = _y;
-                if (!isNaN(_x))
-                    _styles.left = _x;
 				dispatchEvent(new Event("yChanged"));
 			}
 		}
@@ -626,6 +622,10 @@ package org.apache.flex.core
                 _styles = ValuesManager.valuesImpl.parseStyles(value as String);
             else
                 _styles = value;
+            if (!isNaN(_y))
+                _styles.top = _y;
+            if (!isNaN(_x))
+                _styles.left = _x;
             dispatchEvent(new Event("stylesChanged"));
         }
         


Mime
View raw message