Permalink
Browse files

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 c19fc10e8493007af4617597f0afea5f24860955
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/widgets/sortable.js
View
@@ -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
];
}

0 comments on commit c19fc10

Please sign in to comment.