From e9efbc222149ca7c7a5fef2c0fe28b7b1d9be698 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Sat, 9 Aug 2014 23:00:58 -0400 Subject: Draggable: consider offsets from overflow:hidden parents Developers can programmatically set scrollTop/Left on draggable containers that are overflow:hidden. They must be considered for positioning. Fixes #10147 --- ui/draggable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/draggable.js b/ui/draggable.js index 700bb66b3..0c57d801c 100644 --- a/ui/draggable.js +++ b/ui/draggable.js @@ -161,7 +161,7 @@ $.widget("ui.draggable", $.ui.mouse, { //Store the helper's css position this.cssPosition = this.helper.css( "position" ); - this.scrollParent = this.helper.scrollParent(); + this.scrollParent = this.helper.scrollParent( true ); this.offsetParent = this.helper.offsetParent(); this.offsetParentCssPosition = this.offsetParent.css( "position" ); -- cgit v1.2.3