JSVGScrollPane didn't detect the size of JSVGCanvas built from SVGDocument correctly?

dieend <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
Hello, I have a problem with JSVGScrollPane. I use the scrollpane with the
canvas. The svgdocument has size bigger than the scrollpane. And the
viewport of the svgdocument as big as the scrollpane. Based on that, I took
the assumption the scrollpane can be scrolled, and the bar for the knob will
showing.

But what happened not like what I assumed. The scrollbar doesn't showing,
and the canvas is cropped, only showing as big as the scrollpane. It took me
more that half day to try using my keyboard to scroll. The scrolling does
work, and more of my cropped picture showing. How to use the scrollpane
correctly so that the scrollbar showing? I have tried to use
setScrollbarsAlwaysVisible(true) but it's can't be used to scroll the
viewports.

Here is my code around the pane, canvas, and the document:


Are there anything wrong?

--
View this message in context: http://batik.2283329.n4.nabble.com/JSVGScrollPane-didn-t-detect-the-size-of-JSVGCanvas-built-from-SVGDocument-correctly-tp3781696p3781696.html
Sent from the Batik - Users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.