From b6e1f25ab8c038306146a6ead041dc18bfb9e8c2 Mon Sep 17 00:00:00 2001 From: Bertjh Date: Fri, 24 Feb 2012 10:24:25 +0100 Subject: [PATCH] Sortable: modified the contents of placeholder to a single " ". Fixed #8135 - sortable: Horizontal sortable shifts causes elements to shift down. --- ui/jquery.ui.sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js index d5796a3f0..7c81dd2e4 100644 --- a/ui/jquery.ui.sortable.js +++ b/ui/jquery.ui.sortable.js @@ -660,7 +660,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"; -- 2.39.5