aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-23 18:43:00 +0100
committerwout <wout@impinc.co.uk>2012-12-23 18:43:00 +0100
commit31407d2580738c9522c87cd22917a872d6a5dcd8 (patch)
treef0538782452c5ec51f054936d0ee35d4d2b544c9 /src/doc.js
parent18310896cc0c643c2dbe5695a26904c81f43f823 (diff)
downloadsvg.js-31407d2580738c9522c87cd22917a872d6a5dcd8.tar.gz
svg.js-31407d2580738c9522c87cd22917a872d6a5dcd8.zip
Defaulting <svg> width and height to 100%
Diffstat (limited to 'src/doc.js')
-rw-r--r--src/doc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc.js b/src/doc.js
index 644bdfd..2457815 100644
--- a/src/doc.js
+++ b/src/doc.js
@@ -12,7 +12,7 @@ SVG.Doc = function Doc(e) {
// set svg element attributes
this.
- attr({ xmlns: SVG.ns, version: '1.1' }).
+ attr({ xmlns: SVG.ns, version: '1.1', width: '100%', height: '100%' }).
attr('xlink', SVG.xlink, SVG.ns).
defs();