After the SVG is loaded I have code to resize it so that it fits
better for printing purposes:
DocRPF.documentElement.setAttribute("height","12in");
DocRPF.documentElement.setAttribute("width","8in");
But after executing this the SVG appears lower down in the viewbox
(on y axis) rather than at the top - so there is a lot of white
space above it.
Using javascript how can the SVG image be moved so that the SVG has
no white space above it (ie: is at 0 on the y-axis).
I tried the obvious but this has no effect:
DocRPF.documentElement.setAttribute("y","0");
I also tried without success:
DocRPF.documentElement.setAttribute
("preserveAspectRatio ","xMinyMin");
..both before and after the height/width adjustments thinking that
it was the Aspect Ratio that initially caused the SVG to shift down.
I know that I can move it with ".currentTranslate.y - 200" but this
only appears to be relative and the SVG will not always be the same.
I need absolute positioning of the main SVG image.
Any ideas please help?
------------------------ Yahoo! Groups Sponsor --------------------~-->
Great things are happening at Yahoo! Groups. See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/