Skip to content

Commit c19fc10

Browse files
maksimrscottgonzalez
authored andcommitted
Sortable: Fix incorrect top containment for document
Fixes #14927 Closes gh-1695
1 parent 48257cd commit c19fc10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/widgets/sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
10721072
0 - this.offset.relative.left - this.offset.parent.left,
10731073
0 - this.offset.relative.top - this.offset.parent.top,
10741074
o.containment === "document" ? this.document.width() : this.window.width() - this.helperProportions.width - this.margins.left,
1075-
( o.containment === "document" ? this.document.width() : this.window.height() || this.document[ 0 ].body.parentNode.scrollHeight ) - this.helperProportions.height - this.margins.top
1075+
( o.containment === "document" ? ( this.document.height() || document.body.parentNode.scrollHeight ) : this.window.height() || this.document[ 0 ].body.parentNode.scrollHeight ) - this.helperProportions.height - this.margins.top
10761076
];
10771077
}
10781078

0 commit comments

Comments
 (0)