summaryrefslogtreecommitdiffstats
path: root/src/doc.js
diff options
context:
space:
mode:
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);
+
+