From 8a0a4d797f8954a3b1964c6e407d9291d4afc7ab Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Wed, 8 Mar 2017 19:48:20 +0100 Subject: Fix offset produced by svg parser (#553) --- src/svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/svg.js') 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') -- cgit v1.2.3