Hi,
  I use JSVGScrollPane to show svg. When  document is loaded, i changed
the viewbox to root node's bbox value. It works fine and i can view the
whole svg content by scrolling.
  If new elements are added to position out of the initial bbox, the canvas
won't show these elements. So I want to change viewbox again to make viewbox
contains the newly added element and i expect scroll pane can resize it's
scroll bar to map the extended viewbox. But after calling
'setAttributeNS(null,SVGConstants.SVG_VIEW_BOX_ATTRIBUTE,'xxxx'), all things
in canvas disappeard .
Any suggestions?

thx
colin

Reply via email to