Hi Mike!

Thanks for your reply. That was just a typo. I wanted to demonstrate what
I'm doing which actually is:

    svgElement.setAttributeNS(null, "viewBox", "0px 0px " + width + " " +
height);

width and height were defined above.

This results in something like

    <svg [...] viewbox="0px 0px 50px 50px">

which doesn't scale the svg.

Does anybody have a solution for svg scaling?

Thanks a lot,
André


> Hi Andre,
> > svgElement.setAttributeNS(null, "viewBox", "0px 0px width height");
>
> I think, the words 'width' and 'height' are wrong for "viewBox" there.
> You have to write the numeric values for width and height of the section 
> (viewBox) you want to see.
> Best regards
> Maik


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to