diff options
author | wout <wout@impinc.co.uk> | 2012-12-23 11:52:07 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-23 11:52:07 +0100 |
commit | 1ae730fec364f70d4541f38930929607dc2a31ac (patch) | |
tree | 16630efcc4b3ce6a09454681141518a05e4acde4 /src/doc.js | |
parent | 70394584bec59f0b01998b9b54479bb913b0b32a (diff) | |
download | svg.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.js | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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); + + |