Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Sortable: Fix incorrect top containment for document
Fixes #14927
Closes gh-1695
  • Loading branch information
maksimr authored and scottgonzalez committed Apr 12, 2016
1 parent 48257cd commit c19fc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/widgets/sortable.js
Expand Up @@ -1072,7 +1072,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
0 - this.offset.relative.left - this.offset.parent.left,
0 - this.offset.relative.top - this.offset.parent.top,
o.containment === "document" ? this.document.width() : this.window.width() - this.helperProportions.width - this.margins.left,
( o.containment === "document" ? this.document.width() : this.window.height() || this.document[ 0 ].body.parentNode.scrollHeight ) - this.helperProportions.height - this.margins.top
( 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
];
}

Expand Down

0 comments on commit c19fc10

Please sign in to comment.