fredsa / gwt-dnd

Library providing easy to use mouse or touch based drag-and-drop capabilities to GWT
43 stars 41 forks source link

while dragging, the droppable location is not inserted. #187

Open mkuruvil opened 9 years ago

mkuruvil commented 9 years ago

Hi, I am trying to use gwt-dnd in my application. I am copying working code that does drag and drop properly, and making changes to it to adapt it in another part of the application. When I click on a draggable widget's drag handle, the four way pointer shows up. I try dragging it, and it moves, wherever I have moved my mouse. However, the white rectangle which should be inserted immediately after I click the drag handle is not seen.

I am using a FlowPanel, and FlowPanelDropController. When I pick up a widget and move it, a droppable/white rectangle comes up in the working code (which is with a VerticalPanelDropController), but not so for the modified code.

Any suggestions would be appreciated.

Thanks. Matthew

fredsa commented 9 years ago

Suggest using the https://github.com/fredsa/gwt-dnd/blob/wiki/GettingStarted.md wiki. You should also try the working demo code, and compare working examples with your code

On Thu, Mar 19, 2015 at 10:36 PM mkuruvil notifications@github.com wrote:

Hi, I am trying to use gwt-dnd in my application. I am copying working code that does drag and drop properly, and making changes to it to adapt it in another part of the application. When I click on a draggable widget's draggable image, the four way pointer shows up. I try dragging it, and it moves, albeit jerkily, wherever I have moved my mouse. However, the white rectangle which should show up is not showing up, hence I am not able to place my widget and complete the drag and drop by release the mouse.

I am using a FlowPanel, and all the widgets are stacked from left to right and overflows down as needed. when I pick up a widget and move it, a droppable location comes up in the working code, but the modified code does not show that. I would like to know have some idea where in the dnd code this insertion of the white rectangle/droppable location is inserted, so that I can fix this problem. Thanks. Matthew

— Reply to this email directly or view it on GitHub https://github.com/fredsa/gwt-dnd/issues/187.