Dialog: Fixed #3564: Proper positioning in Opera.

This commit is contained in:
Scott González
2008-12-19 20:23:57 +00:00
parent 4a3e8004c8
commit d83bb9028c

View File

@@ -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;
}
}