diff options
Diffstat (limited to 'src/viewbox.js')
-rwxr-xr-x | src/viewbox.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewbox.js b/src/viewbox.js index dfafed4..43849f2 100755 --- a/src/viewbox.js +++ b/src/viewbox.js @@ -7,8 +7,8 @@ SVG.ViewBox = function(element) { /* clone attributes */ this.x = box.x this.y = box.y - this.width = element.node.clientWidth || element.node.getBoundingClientRect().width - this.height = element.node.clientHeight || element.node.getBoundingClientRect().height + this.width = element.node.clientWidth || element.attr('width') + this.height = element.node.clientHeight || element.attr('height') if (view) { /* get width and height from viewbox */ |