From 601ad962e0a417bb369378ed7704a0b493eac365 Mon Sep 17 00:00:00 2001 From: Kris Borchers Date: Wed, 30 Oct 2013 00:00:18 -0500 Subject: [PATCH] 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 --- tests/unit/sortable/sortable.html | 12 ++++++++++-- tests/unit/sortable/sortable_core.js | 18 +++++++++++++++++- ui/jquery.ui.sortable.js | 17 ++++++++--------- 3 files changed, 35 insertions(+), 12 deletions(-) diff --git a/tests/unit/sortable/sortable.html b/tests/unit/sortable/sortable.html index 8e0bac501..b03c786e1 100644 --- a/tests/unit/sortable/sortable.html +++ b/tests/unit/sortable/sortable.html @@ -38,7 +38,7 @@ margin: 1px; border-width: 0; } - #sortable li{ + #sortable li, #sortable2 li{ padding: 0; margin: 0; border-width: 0; @@ -58,7 +58,15 @@
    -