Re: FF21: Why no scrollbars on SVG without explicit height?

[email protected] Tue, 4 Jun 2013 22:21:13 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.svg
Message-ID <[email protected]>
On Wednesday, June 5, 2013 7:34:28 AM UTC+10, Robert Longson wrote:
> 
> It's correct that both default to 100% of the container. That just means that 1 pixel of the container = 1 pixel of the drawing per http://www.w3.org/TR/SVG/coords.html#EstablishingANewViewport
Let me ask a slightly different question then. Is there a way I can create an SVG such that all of the image will be displayed, without clipping any of the image, and without having to explicitly set the viewport width or height? The problem I have, is if the SVG is being automatically generated, there is a lot of extra work to calculate the correct value for the height attribute.

Thanks
Simon