From c9678562e1ba5c010ba15aa036f6ca86386c5b65 Mon Sep 17 00:00:00 2001 From: wout Date: Wed, 22 Jan 2014 13:53:14 +0100 Subject: Fix in SVG.Viewbox --- src/viewbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3