Skip to content

Commit b6e1f25

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.
1 parent 58a5e23 commit b6e1f25

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
@@ -660,7 +660,7 @@ $.widget("ui.sortable", $.ui.mouse, {
660660

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

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

0 commit comments

Comments
 (0)