Skip to content
Permalink
Browse files

Resizable documentScroll reference

  • Loading branch information
eduardolundgren committed Jan 27, 2009
1 parent 279f659 commit 73cf6e58b50e27d331447095d2d2e5c1d7f48a2a
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.resizable.js
@@ -224,7 +224,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
if (el.is('.ui-draggable') || (/absolute/).test(el.css('position'))) {
// sOffset decides if document scrollOffset will be added to the top/left of the resizable element
var sOffset = $.browser.msie && !o.containment && (/absolute/).test(el.css('position')) && !(/relative/).test(el.parent().css('position'));
var dscrollt = sOffset ? o.documentScroll.top : 0, dscrolll = sOffset ? o.documentScroll.left : 0;
var dscrollt = sOffset ? this.documentScroll.top : 0, dscrolll = sOffset ? this.documentScroll.left : 0;

el.css({ position: 'absolute', top: (iniPos.top + dscrollt), left: (iniPos.left + dscrolll) });
}

0 comments on commit 73cf6e5

Please sign in to comment.
You can’t perform that action at this time.