xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: JSVGScrollPane - canvas dynamic resize question
Date Tue, 03 Jan 2006 20:01:32 GMT
Hi Martin,

"emk" <emk@gmx.at> wrote on 01/02/2006 10:03:13 AM:

> 1.) how do i update the size / viewbox of a canvas in a way that the
> scrollpane uses the new size.

   call 'setAttributeNS(null, "viewBox", <new view box>)' on the root
SVG element.

> 2.) how do i get the scrollpane to update itself according the new size
> of the canvas?

   I'm not 100% certain I understand the question but I think if you just
update the viewbox the scroll extents will update automatically.

> i have something like this:
> * a template svg file i load into the canvas.
> * an application that calculates new svg objects
> * a DOMSubtreeModified listener calculating the new size of the canvas.
> <--- here i dont get it how to solve 1.) and 2.)


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message