mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixed #3894
This commit is contained in:
parent
73cf6e58b5
commit
7f12279da5
@ -220,13 +220,9 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
|
|||||||
this.resizing = true;
|
this.resizing = true;
|
||||||
this.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() };
|
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'))) {
|
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
|
el.css({ position: 'absolute', top: iniPos.top, left: iniPos.left });
|
||||||
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) });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Opera fixing relative position
|
//Opera fixing relative position
|
||||||
|
Loading…
Reference in New Issue
Block a user