Hi Himerus,
I suspect the problem is that you should use:
setAttributeNS(null, "viewBox", "0 0 600 600");
You should only have to do this once.
Himerus wrote:
hi,
i'am having a viewbox problem; i put a jsvgscrollpane on a frame; and when i draw a quadcurve2D(or anything else) with a mousePresed event , the scroollpane tries to resize the scrollbars;so in checkAndSetViewBoxRect() the viewBox attribute of the element svg is not found (is returned as ""); i tryed to set it manualy : setAttributeNs(svgNS,"viewBox","0 0 600 600") but it doesn't appear in the document when i stream it to the System.out; and if even that would work, i have to set it again and again every time i draw something on the pane's canvas?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]