Hi 征宇 王, The default behavior (in fact the one prescribed by the SVG spec) is that when the content has a viewBox the viewBox is fitted to the visible area. Since the extent of the scrollbars is limited to the viewBox there is nothing for the scrollbars to scroll, everything is visible.
If you don't want this behavior you can change the 'calculateViewingTransform' method of the JSVGCanvas so it doesn't fit the content to the viewable space. The scrollbar should then be visible. Also you may be aware that Batik now includes an updated version of Zachary's original JSVGScrollCanvas (I'm not sure what the JSVGViewport is). 征宇 王 wrote: > Hi,I have used the JSVGScrollCanvas and JSVGViewport created by > Zachary DelProposto.After my SVGDom is load,I can see ScrollBar at > bottom and left.But the scrollbar can not scroll at all.Only after I > used "shift+mouse" to "pan" the SVG,the scrollBars worked well.Could > anyone tell me how can I get scrollbars work correctly just when the DOM > is loaded.Thx --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
