diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2014-08-09 23:00:58 -0400 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2014-08-12 19:30:09 -0400 |
commit | e9efbc222149ca7c7a5fef2c0fe28b7b1d9be698 (patch) | |
tree | 081806d40a83fc1db9ea18dfecdecc780ee6744d /ui | |
parent | 67e4b44b295517cb81ced7b6c41fd9898a45d0d9 (diff) | |
download | jquery-ui-e9efbc222149ca7c7a5fef2c0fe28b7b1d9be698.tar.gz jquery-ui-e9efbc222149ca7c7a5fef2c0fe28b7b1d9be698.zip |
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
Diffstat (limited to 'ui')
-rw-r--r-- | ui/draggable.js | 2 |
1 files changed, 1 insertions, 1 deletions
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" ); |