Skip to content
Permalink
Browse files

Dialog: Fixed #3564: Proper positioning in Opera.

  • Loading branch information
scottgonzalez committed Dec 19, 2008
1 parent 4a3e800 commit d83bb9028cb5d216b465b3f9721f870b4ee7db4a
Showing with 4 additions and 2 deletions.
  1. +4 −2 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;
}
}

0 comments on commit d83bb90

Please sign in to comment.
You can’t perform that action at this time.