diff options
author | wout <wout@impinc.co.uk> | 2016-08-04 08:58:29 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2016-08-04 08:58:29 +0200 |
commit | b0a8b25f387d882e54dfddbbbc208a7c3ca39730 (patch) | |
tree | 6dcba89a33b2debf0f335033b3f27e241b71d6b0 /src/element.js | |
parent | 86c99607a393b43aeb50979e97ab69853293847f (diff) | |
download | svg.js-b0a8b25f387d882e54dfddbbbc208a7c3ca39730.tar.gz svg.js-b0a8b25f387d882e54dfddbbbc208a7c3ca39730.zip |
Speed improvements on parent element
Diffstat (limited to 'src/element.js')
-rw-r--r-- | src/element.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/element.js b/src/element.js index 2bf912a..3713aac 100644 --- a/src/element.js +++ b/src/element.js @@ -54,7 +54,7 @@ SVG.Element = SVG.invent({ } // Set element size to given width and height , size: function(width, height) { - var p = proportionalSize(this.bbox(), width, height) + var p = proportionalSize(this, width, height) return this .width(new SVG.Number(p.width)) |