Skip to main content

Search and Top Navigation

#9381 closed bug (fixed)

Opened June 17, 2013 11:26PM UTC

Closed November 01, 2013 08:17PM UTC

Last modified November 01, 2013 08:21PM UTC

Sortable: Connected list placeholders have an inaccurate initial position

Reported by: dylanpyle Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.sortable Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

Hey folks,

I'm running into an issue with jQuery-UI 1.10.3 (+ jQuery 2.0.2) regarding the behavior of connected sortable lists.

Reduced test case at: http://jsfiddle.net/VNZW8/

Expected behavior: When dragging an element from the sidebar to the main content area, the initial placeholder and subsequent drop point is below the existing items if appropriate.

Observed behavior: The placeholder always initially appears at the top of the receiving list prior to any existing items, unless the mouse is moved to the top of the list then back down again.

I'm seeing this behavior in Chrome 27 and Firefox 21, and have no reason to suspect it's browser-dependent.

This issue is not present in UI 1.9.2 (+ jQuery 1.9.1), which implies it's a recent regression.

Happy to clarify if there's any additional questions.

Attachments (0)
Change History (5)

Changed June 17, 2013 11:46PM UTC by dylanpyle comment:1

_comment0: Update for clarification, here's what I'm seeing vs. what I'd expect to see: \ \ http://f.cl.ly/items/3v1s3w1z1a1t0v0H4743/actual.png \ http://f.cl.ly/items/2x2q1u2m0n3G2K330W2p/expected.png1371512836767568

Update for clarification, here's what I'm seeing vs. what I'd expect to see:

http://f.cl.ly/items/3v1s3w1z1a1t0v0H4743/actual.png

http://f.cl.ly/items/2x2q1u2m0n3G2K330W2p/expected.png

Changed June 18, 2013 02:29AM UTC by tj.vantoll comment:2

resolution: → duplicate
status: newclosed

Duplicate of #9314.

Changed June 19, 2013 12:18AM UTC by tj.vantoll comment:3

resolution: duplicate
status: closedreopened
summary: Connected list placeholders have an inaccurate initial positionSortable: Connected list placeholders have an inaccurate initial position

Likely has the same root cause as #9314.

Changed November 01, 2013 08:17PM UTC by Kris Borchers comment:4

resolution: → fixed
status: reopenedclosed

Sortable: Adjust itemWithLeastDistance algorithm in _contactContainers to properly handle dragging items to the beginning and ends of lists. Fixes #9314 - Sortable: Items cannot be dragged directly into bottom position. Fixes #9381 - Sortable: Connected list placeholders have an inaccurate initial position

Changeset: 601ad962e0a417bb369378ed7704a0b493eac365

Changed November 01, 2013 08:21PM UTC by scottgonzalez comment:5

milestone: none1.11.0