Skip to content
Permalink
Browse files

Fixed #3894

  • Loading branch information
eduardolundgren committed Jan 27, 2009
1 parent 73cf6e5 commit 7f12279da59e86c0a0342e7a17b927c53be73697
Showing with 2 additions and 6 deletions.
  1. +2 −6 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

0 comments on commit 7f12279

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