Hi Paddy,

paddy <[EMAIL PROTECTED]> wrote on 07/31/2006 10:24:02 AM:

> The problem is the objects in the document can start anywhere in the
> document and can be fairly wide so i would like to be able to set the 
canvas
> up so that it displays the entire document and zooms and pans it so that 
it
> all fits in the canvas without scroll bars etc. Could someone please 
tell me
> how i can get it to do this?? At present it only views a small part as 
the
> viewbox starts at 0,0

   I would suggest setting your viewBox to the rect returned by 'getBBox'
on the root SVG Element.  You may need to boot the SVG DOM (see wiki for
code that does this).


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

Reply via email to