>>>>> "B" == BraudeM <[EMAIL PROTECTED]> writes:
B> Hi - I've figured out the problem but I'm not entirely sure how to
B> fix it. I do have a hack in place right now that solves the
B> problem, but it's not at all efficiant so I'd like to change it.
B> The problem seems to be caused by the size of the document. When I
B> create a new canvas, I create the SVGDocument with the following
B> code:
B> public static SVGDocument createNewSVGDocument() {
B> DOMImplementation impl =
B> SVGDOMImplementation.getDOMImplementation(); Document document =
B> impl.createDocument(SVGDOMImplementation.SVG_NAMESPACE_URI,
B> SVG_SVG_TAG, null); return (SVGDocument)document; }
B> When I add SVG tags to that document and drag them around, the
B> repainting problem does not occur in the top left portion of the
B> screen. The bounds seems to be about 200x200 or so. As soon as I
B> start dragging objects outside of that rectangle, I get repaint
B> problems.
B> I tried resetting the width, height, and viewport variables and had
B> no luck. I'd love to solve this because my current solution is not
B> at all efficiant.
I think there is a fix in CVS that will make updating width/height
work:
http://koala.ilog.fr/batik/mlists/batik-dev/archives/msg02948.html
Alternately if you set the width and height on the outermost svg
before you set the document on the JSVGComponent (like before you
return it in your createNewSVGDocument method) it should pay attention
to them. I'm pretty sure something like 200x200 is the default we use
if the SVG element has no indication of size.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]