diff options
Diffstat (limited to 'ui/ui.dialog.js')
-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; } } |