From 74614e02ec8c0a134d1320f8b7489e6a63fc88bc Mon Sep 17 00:00:00 2001 From: wout Date: Fri, 23 Aug 2013 07:09:34 +0100 Subject: Fix in viewbox --- dist/svg.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dist/svg.js') diff --git a/dist/svg.js b/dist/svg.js index 0753468..d906406 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -1,4 +1,4 @@ -/* svg.js v0.32-4-gbd58094 - svg regex default color array number viewbox bbox rbox element parent container fx event defs group arrange mask clip gradient doc shape use rect ellipse line poly path plotable image text textpath nested sugar set memory loader - svgjs.com/license */ +/* svg.js v0.32-5-g0ceb9b2 - svg regex default color array number viewbox bbox rbox element parent container fx event defs group arrange mask clip gradient doc shape use rect ellipse line poly path plotable image text textpath nested sugar set memory loader - svgjs.com/license */ ;(function() { this.SVG = function(element) { @@ -535,8 +535,8 @@ /* clone attributes */ this.x = box.x this.y = box.y - this.width = element.node.offsetWidth || element.attr('width') - this.height = element.node.offsetHeight || element.attr('height') + this.width = element.node.getBoundingClientRect().width + this.height = element.node.getBoundingClientRect().height if (view) { /* get width and height from viewbox */ -- cgit v1.2.3