Opened 10 years ago

Closed 7 years ago

#5450 closed bug (worksforme)

Cannot drop items onto a empty list for connected sortable list inside a overflowing div

Reported by: dodecapus Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.sortable Version: 1.8
Keywords: Cc:
Blocked by: Blocking:

Description

When there are two connected sortable lists inside of scrolling divs one on top of the other. When the bottom list is empty, unless ones scrolls all the way down to the bottom of the top list, the items cannot be moved to the list on the bottom. When the top div has scrolled all the way down, any items that are currently viewable can be dragged to the bottom just fine.

It is not tested, but I imagine this is the case for any direction of scrolling.

Change History (6)

comment:1 Changed 10 years ago by dodecapus

It is also the case that when you start to move the last item on the bottom list, it no longer has a placeholder to drop onto on the bottom list unless the top list has been scrolled all the way down.

comment:2 in reply to:  1 Changed 10 years ago by dodecapus

Replying to dodecapus:

It is also the case that when you start to move the last item on the bottom list, it no longer has a placeholder to drop onto on the bottom list unless the top list has been scrolled all the way down.

And by last item in the list, I mean the bottom list only has one item left.

comment:3 Changed 9 years ago by jordibig

I was about to report this as a new bug, but I saw that one, so I leave here the example I prepared. I've noticed that everything works properly with jquery-ui-1.7.3, and the problem appears on 1.8

To reproduce it:

  1. drag at least 6 items from the box on the left to the right-top box. Overflow:auto and fixed height cause scroll to appear and limit the scope of the ul, but the droppable area grows then to the bottom list.
  2. try to drag 1 item to the box on right-bottom
  3. the item is dropped on the bottom box, but appears on the top list

example including 1.8.2 (not working): http://jsbin.com/oziqo4/8
example including 1.7.3 (works fine): http://jsbin.com/oziqo4/7

comment:4 Changed 8 years ago by patriciavandermeer

I'm having this problem as well, using jquery ui 1.8.11

Is there any update on if/when this will be fixed? or a workaround/hack to fix it?

comment:5 Changed 7 years ago by Scott González

Milestone: TBD2.0.0

comment:6 Changed 7 years ago by mikesherov

Resolution: worksforme
Status: newclosed

Thanks for taking the time to contribute to the jQuery UI project! I can no longer reproduce the issue using the latest jQuery and jQuery UI. http://jsfiddle.net/vnRcg/

If you can still reproduce it, please feel free to reply to this ticket with a test case showing the problem. Thanks!

Note: See TracTickets for help on using tickets.