Hello Thomas, thanks for your response.
My class extends JSVGCanvas. I add this to an scrollpane and implements scrollable. If I resize my window bigger than the svg document-size than you can see as a white rectangle the svg document, surrounded with th grey background from the viewport. here a methode from scrollable interface: /** * @see javax.swing.Scrollable#getPreferredScrollableViewportSize() */ public Dimension getPreferredScrollableViewportSize() { return getPreferredSize(); } This all works god. If I load an larger image then canvas size than scrollbars appears. Now I will change the size from my svg-document (e.g. makes it larger) and hope the canvas will get notice from it - but unfortunatly he did not show any reaction. A workaround can be to save the modified document (in DOM my changes takes effect !) and reload it. But this method seemes to be overkill and is not very performant. Jan -----Ursprüngliche Nachricht----- Von: Thomas E Deweese [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. März 2003 13:36 An: Batik Users Betreff: RE: How to change image-size online >>>>> "LJ" == Lolling, Jan <[EMAIL PROTECTED]> writes: LJ> I build a SVG-editor. One of my goals is to manipulate the entire LJ> size (bounds) of the SVG-document. I am trying set the height und LJ> width-attributes from the svg-tag-element over the updateManager LJ> from JSVGCanvas. Nothing happens. If I save this changed document LJ> the svg-attributes are changed - ok - but the canvas does not LJ> react. I try to use methode renderGVTTree() or use LJ> invalidate/validate-method from Swing. Nothing happens. LJ> Can any body help me how can I change the svg-bounds online. As you might imagine the outermost SVG element is a bit of a special case. Also I might point out that there are several possible implementations for responding to this change (like resizing the window, or just updating the clip - if overflow is hidden). What are you 'expecting' to happen? LJ> Mit freundlichen Grüssen --------------------------------------------------------------------- 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]