Work around for JQuery sortable bug (placeholder smaller than component).

STUD-1967
This commit is contained in:
cahrens
2014-07-22 17:20:41 -04:00
parent 620e990616
commit 49e4ffbeb0
2 changed files with 6 additions and 1 deletions

View File

@@ -20,6 +20,12 @@ define(["jquery", "underscore", "js/views/xblock", "js/utils/module", "gettext",
reorderableContainer.sortable({
handle: '.drag-handle',
start: function (event, ui) {
// Necessary because of an open bug in JQuery sortable.
// http://bugs.jqueryui.com/ticket/4990
reorderableContainer.sortable('refreshPositions');
},
stop: function (event, ui) {
var saving, hideSaving, removeFromParent;

View File

@@ -160,7 +160,6 @@ class DragAndDropTest(NestedVerticalTest):
expected_ordering
)
@skip("Sporadically drags outside of the Group.")
def test_reorder_in_group(self):
"""
Drag Group A Item 2 before Group A Item 1.