vue-smooth-dnd icon indicating copy to clipboard operation
vue-smooth-dnd copied to clipboard

Need ability to trigger resize

Open dietrichg opened this issue 6 years ago • 3 comments

Initially when my tab loads the drag and drop functionality doesn't work until i either: resize the window manually or try to drag and drop (after first unsuccessful attempt it seems to reflow and work from there on out.)

dietrichg avatar Apr 24 '19 05:04 dietrichg

Right now the fix is to dispatch a new resize event on the window.

window.dispatchEvent(new Event('resize'));

dietrichg avatar Apr 24 '19 14:04 dietrichg

Thank you! I ran into this issue as well. It seems that the DragContainer can un-align itself somehow until a resize event, or a drag over the unaligned container, occurs.

Evilbits avatar Jul 03 '19 08:07 Evilbits

+1

fanomena-private avatar Aug 20 '19 14:08 fanomena-private