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 <[email protected]>
Authored: Fri Oct 24 15:39:31 2014 -0400
Committer: Peter Ent <[email protected]>
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.

Reply via email to