Skip to main content

Search and Top Navigation

#8039 closed bug (duplicate)

Opened January 20, 2012 02:58PM UTC

Closed November 08, 2012 03:54AM UTC

Sortable: Unable to drag item from one sortable with vertical scroll to other with vertical scroll

Reported by: alecs Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.sortable Version: 1.8.17
Keywords: Cc:
Blocked by: Blocking:
Description

Here is my fiddle : http://jsfiddle.net/alecs/NFy3y/

Sometimes it's not possible to drag items from one scrollable div to other div.

Scroll down the left bar(to the lowest part of container) and try to drag item from the right bar to the left. Though when the left scroll is in the top position you are able to drag items to it.

Attachments (0)
Change History (4)

Changed January 22, 2012 07:33PM UTC by tj.vantoll comment:1

_intersectsWith returns false in this situation when the item is in the container. In the method there are negative values for the top and bottom of the item, and the logic to determine isOverElement appears to be expecting positive values. So I'm assuming that's a problem.

I found that if I comment out this check in refreshPositions everything works:

//We ignore calculating positions of all connected containers when we're not over them
if(item.instance != this.currentContainer && this.currentContainer && item.item[0] != this.currentItem[0])
    continue;

So it appears to be related to the position not being recalculated when it should be.

Changed October 11, 2012 02:55PM UTC by scottgonzalez comment:2

milestone: 1.9.02.0.0

Changed November 04, 2012 09:57PM UTC by petersendidit comment:3

status: newopen
summary: Unable to drag item from one sortable with vertical scroll to other with vertical scrollSortable: Unable to drag item from one sortable with vertical scroll to other with vertical scroll

Changed November 08, 2012 03:54AM UTC by tj.vantoll comment:4

resolution: → duplicate
status: openclosed

Duplicate of #7065.