aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.resizable.js
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2009-01-27 06:22:29 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2009-01-27 06:22:29 +0000
commit7f12279da59e86c0a0342e7a17b927c53be73697 (patch)
tree40f184c049135589af45f869b972f8c816f4579a /ui/ui.resizable.js
parent73cf6e58b50e27d331447095d2d2e5c1d7f48a2a (diff)
downloadjquery-ui-7f12279da59e86c0a0342e7a17b927c53be73697.tar.gz
jquery-ui-7f12279da59e86c0a0342e7a17b927c53be73697.zip
Fixed #3894
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r--ui/ui.resizable.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js
index 28a5583df..d5d73c4ac 100644
--- a/ui/ui.resizable.js
+++ b/ui/ui.resizable.js
@@ -220,13 +220,9 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
this.resizing = true;
this.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() };
- // bugfix #1749
+ // bugfix for http://dev.jquery.com/ticket/1749
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 ? this.documentScroll.top : 0, dscrolll = sOffset ? this.documentScroll.left : 0;
-
- el.css({ position: 'absolute', top: (iniPos.top + dscrollt), left: (iniPos.left + dscrolll) });
+ el.css({ position: 'absolute', top: iniPos.top, left: iniPos.left });
}
//Opera fixing relative position