Skip to content

Commit

Permalink
Dialog: Fixed #3564: Proper positioning in Opera.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Dec 19, 2008
1 parent 4a3e800 commit d83bb90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/ui.dialog.js
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit d83bb90

Please sign in to comment.