fix about window positioning on Macs. b=295282 r=mano sr=mconnor a=mconnor
git-svn-id: svn://10.0.0.236/trunk@177286 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
711071fb82
commit
4d52a0a0f8
@ -48,6 +48,11 @@ function init(aEvent)
|
||||
button.addEventListener("command", switchPage, false);
|
||||
|
||||
document.documentElement.getButton("accept").focus();
|
||||
#ifdef XP_MACOSX
|
||||
// it may not be sized at this point, and we need its width to calculate its position
|
||||
window.sizeToContent();
|
||||
window.moveTo((screen.availWidth / 2) - (window.outerWidth / 2), screen.availHeight / 5);
|
||||
#endif
|
||||
}
|
||||
|
||||
function uninit(aEvent)
|
||||
|
||||
@ -406,7 +406,7 @@ function openAboutDialog()
|
||||
// XXXmano: define minimizable=no although it does nothing on OS X
|
||||
// (see Bug 287162); remove this comment once Bug 287162 is fixed...
|
||||
window.open("chrome://browser/content/aboutDialog.xul", "About",
|
||||
"centerscreen,chrome,resizable=no, minimizable=no");
|
||||
"chrome, resizable=no, minimizable=no");
|
||||
}
|
||||
#else
|
||||
window.openDialog("chrome://browser/content/aboutDialog.xul", "About", "modal,centerscreen,chrome,resizable=no");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user