diff options
author | wout <wout@impinc.co.uk> | 2013-08-23 07:09:34 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-08-23 07:09:34 +0100 |
commit | 74614e02ec8c0a134d1320f8b7489e6a63fc88bc (patch) | |
tree | 26b9412220a2e11a2550c50bcb32b4fbd29ec1e5 /dist/svg.js | |
parent | 0ceb9b29401e26181d0b05cf8fed4c6aa1627447 (diff) | |
download | svg.js-74614e02ec8c0a134d1320f8b7489e6a63fc88bc.tar.gz svg.js-74614e02ec8c0a134d1320f8b7489e6a63fc88bc.zip |
Fix in viewbox
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 6 |
1 files changed, 3 insertions, 3 deletions
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 */ |