aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.resizable.js
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2008-07-08 17:39:07 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2008-07-08 17:39:07 +0000
commita8c39c29e27f9df3e474d7e5937d29dd664414eb (patch)
tree2876062822399282cb21c8890f1d9ec573f525e0 /ui/ui.resizable.js
parentf9e3474daa33fefa0da7b41713ef4417d4417433 (diff)
downloadjquery-ui-a8c39c29e27f9df3e474d7e5937d29dd664414eb.tar.gz
jquery-ui-a8c39c29e27f9df3e474d7e5937d29dd664414eb.zip
Resizable - fixed #3074
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r--ui/ui.resizable.js5
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 };