summaryrefslogtreecommitdiffstats
path: root/src/doc.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-23 11:52:07 +0100
committerwout <wout@impinc.co.uk>2012-12-23 11:52:07 +0100
commit1ae730fec364f70d4541f38930929607dc2a31ac (patch)
tree16630efcc4b3ce6a09454681141518a05e4acde4 /src/doc.js
parent70394584bec59f0b01998b9b54479bb913b0b32a (diff)
downloadsvg.js-1ae730fec364f70d4541f38930929607dc2a31ac.tar.gz
svg.js-1ae730fec364f70d4541f38930929607dc2a31ac.zip
Fixed a bug in safari prevending correct dy on tspans
Diffstat (limited to 'src/doc.js')
-rw-r--r--src/doc.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/doc.js b/src/doc.js
index ead1116..0322e86 100644
--- a/src/doc.js
+++ b/src/doc.js
@@ -8,16 +8,21 @@ SVG.Doc = function Doc(e) {
// set
this.
- attr({ xmlns: SVG.ns, version: '1.1' }).
+ attr({ xmlns: SVG.ns, version: '1.1', style: 'position:relative;' }).
attr('xlink', SVG.xlink, SVG.ns).
size(e.offsetWidth, e.offsetHeight).
defs();
e.appendChild(this.node);
+
+ // ensure
+ this.stage();
};
// inherit from SVG.Element
SVG.Doc.prototype = new SVG.Element();
// include the container object
-SVG.extend(SVG.Doc, SVG.Container); \ No newline at end of file
+SVG.extend(SVG.Doc, SVG.Container);
+
+