diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-12-19 20:34:54 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-12-19 20:34:54 +0000 |
commit | 5a302934af8e2d24e20c669c3dc9e14b7bdd2e8a (patch) | |
tree | 7496fa400121b72929deae1c2051dbb6f9ea3fa9 | |
parent | d83bb9028cb5d216b465b3f9721f870b4ee7db4a (diff) | |
download | jquery-ui-5a302934af8e2d24e20c669c3dc9e14b7bdd2e8a.tar.gz jquery-ui-5a302934af8e2d24e20c669c3dc9e14b7bdd2e8a.zip |
Dialog: Fixed #3221: User outerWidth/Height for positioning.
-rw-r--r-- | ui/ui.dialog.js | 8 |
1 files 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; } } |