On Fri, 2007-04-13 at 06:21 -0400, [EMAIL PROTECTED] wrote:
> Hi Ruben,
> 
>     The Canvas should fit the content to the window if it has a 'viewBox' 
> attribute.
> With out a viewBox attribute the canvas doesn't know what part of the 
> infinite canvas
> would be appropriate to scale to the window so it uses the identity 
> transform.

It worked like a charm!! THANK YOU!!

Ruben

> 
> Ruben Fonseca <[EMAIL PROTECTED]> wrote on 04/12/2007 10:45:50 AM:
> 
> > I'm using Batik library to display a SVG image on a Java program, using
> > the JSVGCanvas widget.
> > 
> > The problem is, when the image is loaded, it goes straight to the top
> > left corner of the canvas, and stays very little.
> > 
> > I wanted it to appear centered on canvas and auto zoomed with the best
> > fit possible for the canvas.
> > 
> > Is this possible? I searched on the API and docs with no success.
> > 
> > Thank you :)
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to