From 5a302934af8e2d24e20c669c3dc9e14b7bdd2e8a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 19 Dec 2008 20:34:54 +0000 Subject: [PATCH] Dialog: Fixed #3221: User outerWidth/Height for positioning. --- ui/ui.dialog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 558e32084..8fb5ae5e3 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -335,11 +335,11 @@ $.widget("ui.dialog", { pLeft += 0; break; case 'right': - pLeft += wnd.width() - this.uiDialog.width(); + pLeft += wnd.width() - this.uiDialog.outerWidth(); break; default: case 'center': - pLeft += (wnd.width() - this.uiDialog.width()) / 2; + pLeft += (wnd.width() - this.uiDialog.outerWidth()) / 2; } } if (pos[1].constructor == Number) { @@ -351,12 +351,12 @@ $.widget("ui.dialog", { break; case 'bottom': // Opera check fixes #3564, can go away with jQuery 1.3 - pTop += ($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.height(); + pTop += ($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight(); break; default: case 'middle': // Opera check fixes #3564, can go away with jQuery 1.3 - pTop += (($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.height()) / 2; + pTop += (($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight()) / 2; } } -- 2.39.5