List Info

Thread: JSVGScrollPane - canvas dynamic resize question




JSVGScrollPane - canvas dynamic resize question
user name
2006-01-03 20:01:32
Hi Martin,

"emk" <emkgmx.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-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )