aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-23 12:31:19 +0100
committerwout <wout@impinc.co.uk>2012-12-23 12:31:19 +0100
commit9231e02fe876e3faa9c13a879223426284a7a921 (patch)
treeb44425f4935da436640e9234cbb351dbe322d65a /README.md
parent1ae730fec364f70d4541f38930929607dc2a31ac (diff)
downloadsvg.js-9231e02fe876e3faa9c13a879223426284a7a921.tar.gz
svg.js-9231e02fe876e3faa9c13a879223426284a7a921.zip
Fine-tuned safari bug fix
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 19c7592..f279990 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,10 @@ This will generate the following output:
</svg>
</div>
```
+If the svg canvas should follow the dimensions of its parent, in this case '#paper', you can use a percentage value:
+```javascript
+var draw = svg('paper').size('100%', '100%');
+```
## Elements