diff options
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); + + |