Monday, February 25, 2008

gwt-dnd-2.0.7 bugs

This test GWT application demonstrates a few bugs I encountered while using gwt-dnd-2.0.7.jar [1] for drag-and-drop of DIV's inside a FlowPanel [2] wrapped inside a ScrollPanel [3].

The app displays three such ScrollingDropPanel's on the page and allows users to drag-and-drop "strips" within a panel and between panels. Note that the app uses strict mode.

Sources (including Eclipse project files) are in this tarball .

The bugs are:

  1. Clicking on the lower half of a strip (without moving the mouse) performs a drag and swaps it with the strip underneath.
  2. Strips beyond the first page cannot be dragged. Or rather, they can be picked up, but no positioner shows, and when dropped, they return to their original position.
  3. When dragging multiply-selected strips, the drag proxy does not display properly. Some times, it has the correct height, but only the first and last strips show and the strips in the middle are blank. Other times, only two strips are shown and they have the same label. It seems the drag proxy is rendered differently depending on which strip in the multiple selection is used to start the drag.
  4. Once multiply-selected strips have been dragged-and-dropped, clicking on any one of the still selected strips cause the rest to disappear.

References

  1. gwt-dnd-2.0.7.jar
  2. FlowPanel
  3. ScrollPanel

0 Comments:

Post a Comment

<< Home