Export to GitHub

svgweb - issue #600

Image is sized with half the height it should be


Posted on Jan 4, 2011 by Grumpy Dog

What steps will reproduce the problem? 1. See attached test file

What is the expected output? What do you see instead? The image should fill the box, but it is only half the height it should be.

Attachments

Comment #1

Posted on Jan 6, 2011 by Grumpy Dog

If you add a viewBox attribute, like this: svg.setAttribute('viewBox', '0 0 500 400') the problem goes away.

Status: Accepted

Labels:
Type-Defect Priority-Medium