flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [30/50] git commit: [flex-asjs] [refs/heads/develop] - Percentage values should evaluate to NaN and not 0
Date Mon, 03 Jul 2017 13:35:24 GMT
Percentage values should evaluate to NaN and not 0


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

Branch: refs/heads/develop
Commit: 26b15e5a06d5457c27a8e9029e12edc6b0581fc9
Parents: 010c4fc
Author: Harbs <harbs@in-tools.com>
Authored: Sun Jun 25 12:35:58 2017 +0300
Committer: Harbs <harbs@in-tools.com>
Committed: Sun Jun 25 12:35:58 2017 +0300

----------------------------------------------------------------------
 .../Basic/src/main/flex/org/apache/flex/core/ApplicationBase.as  | 4 ++--
 .../projects/Basic/src/main/flex/org/apache/flex/core/UIBase.as  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26b15e5a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/ApplicationBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/ApplicationBase.as
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/ApplicationBase.as
index da1aa16..a3ca917 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/ApplicationBase.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/ApplicationBase.as
@@ -124,7 +124,7 @@ package org.apache.flex.core
             if(strpixels == null)
                 pixels = NaN;
             else
-                pixels = CSSUtils.toNumber(strpixels);
+                pixels = CSSUtils.toNumber(strpixels,NaN);
             if (isNaN(pixels)) {
                 pixels = element.offsetWidth;
                 if (pixels === 0 && element.scrollWidth !== 0) {
@@ -162,7 +162,7 @@ package org.apache.flex.core
             if(strpixels == null)
                 pixels = NaN;
             else
-                pixels = CSSUtils.toNumber(strpixels);
+                pixels = CSSUtils.toNumber(strpixels,NaN);
             if (isNaN(pixels)) {
                 pixels = element.offsetHeight;
                 if (pixels === 0 && element.scrollHeight !== 0) {

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26b15e5a/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 07dffa5..b9ba8c4 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
@@ -375,7 +375,7 @@ package org.apache.flex.core
             if(strpixels == null)
                 pixels = NaN;
             else
-                pixels = CSSUtils.toNumber(strpixels);
+                pixels = CSSUtils.toNumber(strpixels,NaN);
             if (isNaN(pixels)) {
                 pixels = positioner.offsetWidth;
                 if (pixels == 0 && positioner.scrollWidth != 0) {
@@ -467,7 +467,7 @@ package org.apache.flex.core
             if(strpixels == null)
                 pixels = NaN;
             else
-                pixels = CSSUtils.toNumber(strpixels);
+                pixels = CSSUtils.toNumber(strpixels,NaN);
             if (isNaN(pixels)) {
                 pixels = positioner.offsetHeight;
                 if (pixels == 0 && positioner.scrollHeight != 0) {


Mime
View raw message