You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2017/07/03 13:35:24 UTC
[30/50] git commit: [flex-asjs] [refs/heads/develop] - Percentage
values should evaluate to NaN and not 0
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 <ha...@in-tools.com>
Authored: Sun Jun 25 12:35:58 2017 +0300
Committer: Harbs <ha...@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) {