Hi Jorg,
> Thomas DeWeese wrote:
>
>>>> This can be done by simply creating the element:
>>>> <svg x="0" y="0" width="100%" height="100%" viewBox="# # # #">
>>>> and appending your new content under it.
Jorg Heymans wrote:
> This workaround works but has one drawback : the
> resetRenderingTransform() doesn't work anymore. I can reproduce it by
> resizing the canvas, pan around a bit, then do reset..(). Batik puts the
> graphic where it was before the canvas was resized.
This is because your root SVG doesn't have a width/height
and viewBox (doesn't really matter what the viewBox is but it
needs to have one - width & height are a little optional but
still a good idea).
Also my CVS commit this morning should fix the viewBox problem
anyways.
BTW one other point things will be a tad bit more efficient
if you append your content under the child svg and then append
the svg to the document (rather than appending the svg and then
appending your content to the svg).
---------------------------------------------------------------------
To unsubscribe, e-mail:
batik-users-unsubscribe@xmlg...
For additional commands, e-mail:
batik-users-help@xmlg...
opensubscriber is not affiliated with the authors of this message nor responsible for its content.