flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject [3/3] git commit: [flex-asjs] [refs/heads/develop] - Modified the JavaScript GraphicsContainer to set the width and height attribute on the <svg> element so Safari will renderer it correctly.
Date Fri, 24 Oct 2014 19:39:47 GMT
Modified the JavaScript GraphicsContainer to set the width and height attribute on the <svg>
element so Safari will renderer it correctly.


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

Branch: refs/heads/develop
Commit: d0bccb850ea7b484a34bbfcf93c6b190bf3df6ed
Parents: 047b3a3
Author: Peter Ent <pent@apache.org>
Authored: Fri Oct 24 15:39:31 2014 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Fri Oct 24 15:39:31 2014 -0400

----------------------------------------------------------------------
 .../flex/core/graphics/GraphicsContainer.js     | 34 ++++++++++++++++++++
 1 file changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0bccb85/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
index 3b1197a..6fb84c1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/graphics/GraphicsContainer.js
@@ -40,6 +40,40 @@ org.apache.flex.core.graphics.GraphicsContainer.prototype.FLEXJS_CLASS_INFO
=
 
 /**
  * @expose
+ * @return {number} The number of child elements.
+ */
+org.apache.flex.core.graphics.GraphicsContainer.prototype.get_numChildren = function() {
+    return this.internalChildren().length;
+  };
+
+
+/**
+ * @expose
+ */
+org.apache.flex.core.graphics.GraphicsContainer.prototype.removeChildren = function() {
+};
+
+
+/**
+ * @override
+ */
+org.apache.flex.core.graphics.GraphicsContainer.prototype.set_width = function(value) {
+  goog.base(this, 'set_width', value);
+  this.element.setAttribute('width', String(value) + 'px');
+};
+
+
+/**
+ * @override
+ */
+org.apache.flex.core.graphics.GraphicsContainer.prototype.set_height = function(value) {
+  goog.base(this, 'set_height', value);
+  this.element.setAttribute('height', String(value) + 'px');
+};
+
+
+/**
+ * @expose
  * @param {number} x The x position of the top-left corner of the rectangle.
  * @param {number} y The y position of the top-left corner.
  * @param {number} width The width of the rectangle.


Mime
View raw message