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;