From ca0ac5a64f6653fe8399a913538423b13d213307 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sat, 11 Dec 2010 15:19:25 -0500 Subject: [PATCH] All: Remove workaround for .offset() setter bug from older versions of jQuery. --- ui/jquery.ui.autocomplete.js | 2 -- ui/jquery.ui.dialog.js | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) 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(); } -- 2.39.5