mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Sortable: Fix incorrect top containment for document
Fixes #14927 Closes gh-1695
This commit is contained in:
parent
48257cd9ca
commit
c19fc10e84
@ -1072,7 +1072,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
|
|||||||
0 - this.offset.relative.left - this.offset.parent.left,
|
0 - this.offset.relative.left - this.offset.parent.left,
|
||||||
0 - this.offset.relative.top - this.offset.parent.top,
|
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.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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user