Caron, Michael R wrote:

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?

That is a swing layout issue, setup the container for the Canvas to fix it's size (sorry I'm not particularly versed in swing so I can't tell you have to do that off the top of my head).


-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED] 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: [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