Hi Meves,
This should work. I suspect that you need to read the FAQ:
http://xml.apache.org/batik/faqs.html#faq-21
Meves Kai (ext) wrote:
Hi there,
I'm currently working with a document, that is displayed by a JSVGCanvas and
gets modified by my application. There are some elements being added to the
document by my application. I'm also changing the documents' viewBox
attribute by myDoc.getRootElement().setAttribute("viewBox", ...) in order to
see the added elements (they are placed outside the current viewBox). But
the JSVGCanvas seems not to notice the change of the viewBox attribute. The
Elements are added correctly and visible if they appear inside the old
viewBox. When I reload the SVGDocument by JSVGCanvas.setSVGDocument(myDoc)
all shows up correctly, but since the document is very large I don't want to
reload the document every time I add some elements.
Am I doing something wrong or is a change of the viewBox attribute not
supported?
Thank you in advance,
Kai.
---------------------------------------------------------------------
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]