From c19fc10e8493007af4617597f0afea5f24860955 Mon Sep 17 00:00:00 2001 From: Maksim Ryzhikov Date: Tue, 12 Apr 2016 15:39:06 -0400 Subject: [PATCH] Sortable: Fix incorrect top containment for document Fixes #14927 Closes gh-1695 --- ui/widgets/sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/sortable.js b/ui/widgets/sortable.js index 59b3bfff0..ec26250b5 100644 --- a/ui/widgets/sortable.js +++ b/ui/widgets/sortable.js @@ -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 ]; } -- 2.39.5