mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +00:00
fix about window positioning on Macs. b=295282 r=mano sr=mconnor a=mconnor
This commit is contained in:
parent
d635277de3
commit
fd22e571b1
@ -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…
Reference in New Issue
Block a user