diff options
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r-- | ui/ui.resizable.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index ecddd9a1e..7b681af55 100644 --- a/ui/ui.resizable.js +++ b/ui/ui.resizable.js @@ -289,6 +289,11 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, { var curleft = num(this.helper.css('left')), curtop = num(this.helper.css('top')); + if (o.containment) { + curleft += $(o.containment).scrollLeft()||0; + curtop += $(o.containment).scrollTop()||0; + } + //Store needed variables this.offset = this.helper.offset(); this.position = { left: curleft, top: curtop }; |