xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caron, Michael R" <michael.r.ca...@lmco.com>
Subject RE: Auto resize?
Date Tue, 01 Feb 2005 14:42:42 GMT
That seems to keep the SVG rendered the same, but the canvas itself then
grows to the original size of the SVG instead of retaining the initial
smaller canvas. How do I prevent the canvas component from growing?

Mike



-----Original Message-----
From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com] 
Sent: Monday, January 31, 2005 8:06 PM
To: Batik Users
Subject: Re: Auto resize?

Caron, Michael R wrote:

> The JSVGComponent seems to redraw the SVG on any resize event. How do 
> I prevent this?

     Well, it has to redraw for any resize event (otherwise there will
be blank parts on the sides).  I suspect you are objecting to the
'resize' of the content when the window is resized.

     This can be turned off by calling setRecenterOnResize(false).


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message