GWT Disable horizontal drag scrolling

429 views Asked by At

I have a celltable inside a scroll panel. That way I can vertically scroll through all the items. I have been using the gquery plugin for drag and drop functionality. I am wanting to drag an item from one table to another. My problem is that when I try to drag and item from table 1 to table 2, the scroll panel is doing a horizontal autoscroll, so my item is never escaping the scroll panel. How do I drag and item outside the scroll panel?

1

There are 1 answers

1
Chris Lercher On

You will get horizontal overflow if and only if the widget within the scroll panel (i.e. the one you set using flowPanel.setWidget(widget)) is horizontally larger than the scroll panel.

The easiest way to avoid this is to use a standard FlowPanel for the widget, because by default, it is just as wide as its scroll panel.