Hi,
I did not use the viewBox attribute... I've tried with, and all is ok,
the svg is resized.
Thank's for the answer

Nicolas Krieger

----- Original Message -----
From: [EMAIL PROTECTED]
Date: Friday, March 30, 2007 11:56 am
Subject: Re: svg resized whne window resized

> Hi Nicolas,
> 
>   Setting ALWAYS_DYNAMIC on a canvas should not affect the 
> resizing of 
> the
> document to fill the canvas.  Can you provide a small example?  
> Certainlyon our end dynamic document resize properly.
> 
>   FYI a document will only resize if it has a 'viewBox' attribute 
> on it.
> 
> "KRIEGER Nicolas" <[EMAIL PROTECTED]> wrote on 03/26/2007 
> 05:25:45 
> AM:
> 
> > I used the example given in the batik web page to display an svg 
> file> using a jsvgcanvas
> > (http://xmlgraphics.apache.org/batik/using/swing.html). All is 
> ok, when
> > the window is resized, the svg is resized to.
> > Then, I have to add interact whith the svg. What I have to do is 
> only> change color of some elements. So, I create an jsvgcanvas and 
> set the
> > documentState to "JSVGCanvas.ALWAYS_DYNAMIC". All works fine to 
> change> the colors, but when the window is opened, the svg fit the 
> window but is
> > not resized when the window is resized. It seems to be because of
> > "JSVGCanvas.ALWAYS_DYNAMIC", when I do not use this parameter, 
> the svg
> > is resized (of course, I loose the interaction).
> > I don't know how to do to use both.
> > Any idea ?
> > 
> > Nicolas Krieger
> > 
> > 
> > ------------------------------------------------------------------
> ---
> > To unsubscribe, e-mail: batik-users-
> [EMAIL PROTECTED]> For additional commands, e-
> mail: [EMAIL PROTECTED]
> > 
> 
> 
> --------------------------------------------------------------------
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: batik-users-
> [EMAIL PROTECTED]
> 


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

Reply via email to