I have a simple UL in a div with the overflow set to automatic and a fixed height. Each LI is draggable via jQuery. Problem is that I cannot drag them from the div (they disappear when dragged to the boundaries).
I have looked at this question and its answers, but the solution here does not seem to work for me (setting the scroll option): jQuery Draggable and overflow issue
Thanks
I got around this by using a helper method to append the item to the body (so its outside the div)
$("#myitem").draggable({
helper: function() { return $(this).clone().appendTo('body').show(); }
});
Not sure if you need the show() and I also had to raise the z-index but it depends on the rest of your page.
Phil
I was able to achieve the same results with
appendTo: 'body',
helper: 'clone'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With