diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-12-19 20:23:57 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-12-19 20:23:57 +0000 |
commit | d83bb9028cb5d216b465b3f9721f870b4ee7db4a (patch) | |
tree | 03e9ea207d7cbc924cd79afff29347b7746b70cf | |
parent | 4a3e8004c88958d837e6707c0df5aba5fa58a4b1 (diff) | |
download | jquery-ui-d83bb9028cb5d216b465b3f9721f870b4ee7db4a.tar.gz jquery-ui-d83bb9028cb5d216b465b3f9721f870b4ee7db4a.zip |
Dialog: Fixed #3564: Proper positioning in Opera.
-rw-r--r-- | ui/ui.dialog.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index e544e3e49..558e32084 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -350,11 +350,13 @@ $.widget("ui.dialog", { pTop += 0; break; case 'bottom': - pTop += wnd.height() - this.uiDialog.height(); + // Opera check fixes #3564, can go away with jQuery 1.3 + pTop += ($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.height(); break; default: case 'middle': - pTop += (wnd.height() - this.uiDialog.height()) / 2; + // Opera check fixes #3564, can go away with jQuery 1.3 + pTop += (($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.height()) / 2; } } |