summaryrefslogtreecommitdiffstats
path: root/src/svg.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-08 19:48:20 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-08 19:48:20 +0100
commit8a0a4d797f8954a3b1964c6e407d9291d4afc7ab (patch)
treef1c29feea5d4996d0da91bb6caebe82b1df33afe /src/svg.js
parenteb17e6477a6ec62a05d4d6630c8fdcf5c6291b06 (diff)
downloadsvg.js-8a0a4d797f8954a3b1964c6e407d9291d4afc7ab.tar.gz
svg.js-8a0a4d797f8954a3b1964c6e407d9291d4afc7ab.zip
Fix offset produced by svg parser (#553)
Diffstat (limited to 'src/svg.js')
-rw-r--r--src/svg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg.js b/src/svg.js
index 1175a62..b94b08a 100644
--- a/src/svg.js
+++ b/src/svg.js
@@ -135,7 +135,7 @@ SVG.prepare = function() {
// Create parser object
SVG.parser = {
body: body || document.documentElement
- , draw: draw.style('opacity:0;position:fixed;left:100%;top:100%;overflow:hidden')
+ , draw: draw.style('opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden')
, poly: draw.polyline().node
, path: draw.path().node
, native: SVG.create('svg')