Skip to content

Commit f0b7130

Browse files
bertterheidescottgonzalez
authored andcommitted
Sortable: modified the contents of placeholder to a single " ". Fixed #8135 - sortable: Horizontal sortable shifts causes elements to shift down.
(cherry picked from commit b6e1f25)
1 parent 35e2919 commit f0b7130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.sortable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ $.widget("ui.sortable", $.ui.mouse, {
661661

662662
var el = $(document.createElement(self.currentItem[0].nodeName))
663663
.addClass(className || self.currentItem[0].className+" ui-sortable-placeholder")
664-
.removeClass("ui-sortable-helper")[0];
664+
.removeClass("ui-sortable-helper").html(" ")[0];
665665

666666
if(!className)
667667
el.style.visibility = "hidden";

0 commit comments

Comments
 (0)