Hi,
We have several TileGrids containing thumbnails for different media that can be drag-and-dropped here and there.
When using default EventHandler.setDragTracker() overload, everything works fine.
However, when we use the other overload to center the thumbnail relatively to the mouse pointer, we get intermittent issues with "drop line getting stuck". More precisely, if we move a thumbnail quickly between several grids, the drop line (and the focus) will once in a while get stuck in the "old" grid, resulting to wrong results when dropping the item.
Please see attached screenshot and a code snippet:
Any help/alternatives will be highly appreciated.
Can we, for example, use native drag and drop with TileGrid? We tried but could not get this to work. Could you point us at any code example?
Any other workaround to achieve centered thumbnail?
Additional info.
SmartGWT 4.0
Chrome 34, Firefox 29.0.1
We have several TileGrids containing thumbnails for different media that can be drag-and-dropped here and there.
When using default EventHandler.setDragTracker() overload, everything works fine.
However, when we use the other overload to center the thumbnail relatively to the mouse pointer, we get intermittent issues with "drop line getting stuck". More precisely, if we move a thumbnail quickly between several grids, the drop line (and the focus) will once in a while get stuck in the "old" grid, resulting to wrong results when dropping the item.
Please see attached screenshot and a code snippet:
Code:
protected boolean setDragTracker() { //... EventHandler.setDragTracker(dropAllowedHtml); //works fine EventHandler.setDragTracker(dropAllowedHtml, filler.getImageWidth(), filler.getImageHeight(), filler.getImageWidth()/2, filler.getImageHeight()/2); //doesn't work
Can we, for example, use native drag and drop with TileGrid? We tried but could not get this to work. Could you point us at any code example?
Any other workaround to achieve centered thumbnail?
Additional info.
SmartGWT 4.0
Chrome 34, Firefox 29.0.1
Comment