Sortable: modified the contents of placeholder to a single " ". Fixed #8135 - sortable: Horizontal sortable shifts causes elements to shift down.

(cherry picked from commit b6e1f25ab8)
This commit is contained in:
Bertjh 2012-02-24 10:24:25 +01:00 committed by Scott González
parent 35e2919375
commit f0b7130a54

View File

@ -661,7 +661,7 @@ $.widget("ui.sortable", $.ui.mouse, {
var el = $(document.createElement(self.currentItem[0].nodeName))
.addClass(className || self.currentItem[0].className+" ui-sortable-placeholder")
.removeClass("ui-sortable-helper")[0];
.removeClass("ui-sortable-helper").html(" ")[0];
if(!className)
el.style.visibility = "hidden";