r1803 - trunk/ui
r1803 - trunk/ui
Author: eduardolundgren
Date: Mon Jan 26 22:00:41 2009
New Revision: 1803
Modified:
trunk/ui/ui.resizable.js
Log:
Resizable documentScroll reference
Modified: trunk/ui/ui.resizable.js
==============================================================================
--- trunk/ui/ui.resizable.js (original)
+++ trunk/ui/ui.resizable.js Mon Jan 26 22:00:41 2009
@@ -224,7 +224,7 @@
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) });
}