From: Scott González Date: Sat, 11 Dec 2010 20:19:25 +0000 (-0500) Subject: All: Remove workaround for .offset() setter bug from older versions of jQuery. X-Git-Tag: 1.9m4~105 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ca0ac5a64f6653fe8399a913538423b13d213307;p=jquery-ui.git All: Remove workaround for .offset() setter bug from older versions of jQuery. --- diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index e677daf9f..9b1b3f2c9 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -201,8 +201,6 @@ $.widget( "ui.autocomplete", { } }) .zIndex( this.element.zIndex() + 1 ) - // workaround for jQuery bug #5781 http://dev.jquery.com/ticket/5781 - .css({ top: 0, left: 0 }) .hide() .data( "menu" ); if ( $.fn.bgiframe ) { diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 5c1504aeb..c4452368f 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -518,10 +518,7 @@ $.widget("ui.dialog", { if (!isVisible) { this.uiDialog.show(); } - this.uiDialog - // workaround for jQuery bug #5781 http://dev.jquery.com/ticket/5781 - .css({ top: 0, left: 0 }) - .position(position); + this.uiDialog.position(position); if (!isVisible) { this.uiDialog.hide(); }