xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dieend <mail.die...@gmail.com>
Subject JSVGScrollPane didn't detect the size of JSVGCanvas built from SVGDocument correctly?
Date Wed, 31 Aug 2011 17:17:54 GMT
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.

---------------------------------------------------------------------
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