Skip to content

Commit 54bb23a

Browse files
committed
Fix to make placeholder spot exactly the same height. height() only works if there's no padding or borders on the placeholder item.
1 parent e0cc0ba commit 54bb23a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $.fn.sortable = function(options) {
6565
e.originalEvent.dataTransfer.dropEffect = 'move';
6666
if (items.is(this)) {
6767
if (options.forcePlaceholderSize) {
68-
placeholder.height(dragging.height());
68+
placeholder.height(dragging.outerHeight());
6969
}
7070
dragging.hide();
7171
$(this)[placeholder.index() < $(this).index() ? 'after' : 'before'](placeholder);

0 commit comments

Comments
 (0)