Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery drag n' drop won't let me drag outside of a scrollable div?

ok i've got a table with drag and drop classes in a div that has it's overflow set to "auto", this allows me to hide part of a schedule and only puts a scroll bar on the bottom. however, i just created some droppable elements outside of the scrollable div and my draggable elements can't leave the scrollable div. any ideas?

like image 217
mlebrun15 Avatar asked Dec 04 '22 14:12

mlebrun15


1 Answers

Set your draggable to helper: 'clone' and appendTo: 'body' (or whatever parent container you want to constrain to.)

like image 124
Marc Avatar answered Jan 08 '23 23:01

Marc