aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertjh <bertjh@hotmail.com>2012-02-24 10:24:25 +0100
committerScott González <scott.gonzalez@gmail.com>2012-02-24 08:38:18 -0500
commitb6e1f25ab8c038306146a6ead041dc18bfb9e8c2 (patch)
tree5698c8cb8664c43fc92893ae721ddcd56aaa11c6
parent58a5e23a7882e4438e60e354f3f2125562f9a540 (diff)
downloadjquery-ui-b6e1f25ab8c038306146a6ead041dc18bfb9e8c2.tar.gz
jquery-ui-b6e1f25ab8c038306146a6ead041dc18bfb9e8c2.zip
Sortable: modified the contents of placeholder to a single "&nbsp;". Fixed #8135 - sortable: Horizontal sortable shifts causes elements to shift down.
-rw-r--r--ui/jquery.ui.sortable.js2
1 files changed, 1 insertions, 1 deletions
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("&nbsp;")[0];
if(!className)
el.style.visibility = "hidden";