From a8c39c29e27f9df3e474d7e5937d29dd664414eb Mon Sep 17 00:00:00 2001 From: Eduardo Lundgren Date: Tue, 8 Jul 2008 17:39:07 +0000 Subject: Resizable - fixed #3074 --- ui/ui.resizable.js | 5 +++++ 1 file changed, 5 insertions(+) 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 }; -- cgit v1.2.3