flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [03/16] git commit: [flex-asjs] [refs/heads/develop] - fix backgroundImage handling
Date Mon, 05 Jan 2015 23:21:22 GMT
fix backgroundImage handling


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

Branch: refs/heads/develop
Commit: 693d4e6ba93db6ac0a0113d58293ffc08fc18861
Parents: 17da25b
Author: Alex Harui <aharui@apache.org>
Authored: Mon Jan 5 10:12:30 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Jan 5 15:21:00 2015 -0800

----------------------------------------------------------------------
 .../js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js    | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/693d4e6b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
index 25b953d..68ead66 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/SimpleCSSValuesImpl.js
@@ -306,6 +306,10 @@ org.apache.flex.core.SimpleCSSValuesImpl.prototype.applyStyles =
       else
         value = value.toString() + 'px';
     }
+    else if (p == 'backgroundImage') {
+      if (p.indexOf('url') !== 0)
+        value = 'url(' + value + ')';
+    }
     thisObject.element.style[p] = value;
   }
 };


Mime
View raw message