diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-07-08 17:39:07 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-07-08 17:39:07 +0000 |
commit | a8c39c29e27f9df3e474d7e5937d29dd664414eb (patch) | |
tree | 2876062822399282cb21c8890f1d9ec573f525e0 /ui/ui.resizable.js | |
parent | f9e3474daa33fefa0da7b41713ef4417d4417433 (diff) | |
download | jquery-ui-a8c39c29e27f9df3e474d7e5937d29dd664414eb.tar.gz jquery-ui-a8c39c29e27f9df3e474d7e5937d29dd664414eb.zip |
Resizable - fixed #3074
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 }; |