Skip to content

Commit

Permalink
Resizable documentScroll reference
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardolundgren committed Jan 27, 2009
1 parent 279f659 commit 73cf6e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ui.resizable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) });
}
Expand Down

0 comments on commit 73cf6e5

Please sign in to comment.