diff options
author | wout <wout@impinc.co.uk> | 2012-12-23 15:13:55 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-23 15:13:55 +0100 |
commit | fe697ccde786eeeccffef99b8a6fea791a257a6d (patch) | |
tree | cbefd9d2c79d267c15058f2cd1bd761d275468d9 /src/container.js | |
parent | 496a0da55994fa3f2cf19c39300ee3dd125beb7a (diff) | |
download | svg.js-fe697ccde786eeeccffef99b8a6fea791a257a6d.tar.gz svg.js-fe697ccde786eeeccffef99b8a6fea791a257a6d.zip |
Imporved safari fix
Diffstat (limited to 'src/container.js')
-rw-r--r-- | src/container.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/container.js b/src/container.js index 369dc51..9330533 100644 --- a/src/container.js +++ b/src/container.js @@ -113,8 +113,8 @@ SVG.Container = { r = function() { if (document.readyState === 'complete') { - e.node.style.position = 'absolute'; - setTimeout(function() { e.node.style.position = 'relative'; }, 5); + e.attr('style', 'position:absolute;left:0;top:0;'); + setTimeout(function() { e.attr('style', 'position:relative;'); }, 5); } else { setTimeout(r, 10); } |