ViewportViewer - testVerticalBounds not working?

1 view
Skip to first unread message

Brian

unread,
Sep 14, 2007, 10:51:43 AM9/14/07
to gwtsandbox
I'm assuming I'm missing something with this. I've been looking at it
for awhile because it functions very close to what I want, but I'm
still having a hard time following much of it.

Anyway, my question is: Why can the 'empty space' beyond the edges of
the the underlying image be seen? You can drag the image up and up,
and new blue blank tiles just keep appearing beyond the bottom of the
image. I would think you'd want to prevent this.

Robert Hanson

unread,
Sep 16, 2007, 8:14:39 AM9/16/07
to gwtsa...@googlegroups.com
> Anyway, my question is: Why can the 'empty space'
> beyond the edges of the the underlying image be seen?

It shouldn't be. t should stop you from dragging once you hit an
edge. The max dimensions are determined by the arguments to the
ViewportModel constructor.

model = new ViewportModel(3500, 2800);

This is then modified by the current percentage as returned by
getCurrentPercentSize() on the model.

So it should work, and it does for me... but it may possible that
there is a bug.

Rob

Reply all
Reply to author
Forward
0 new messages