Fix progress window on Firefox 3

This commit is contained in:
Dan Stillman 2008-03-02 17:20:16 +00:00
parent 683f2e23db
commit 169630c5fe

View File

@ -62,11 +62,6 @@ Zotero.ProgressWindowSet = new function() {
if (parent) { if (parent) {
var right = parent.screenX + parent.outerWidth; var right = parent.screenX + parent.outerWidth;
var bottom = parent.screenY + parent.outerHeight; var bottom = parent.screenY + parent.outerHeight;
// On OS X outerHeight doesn't include 22px title bar and
// moveTo() positions popups 22px below the specified location
if (Zotero.isMac) {
bottom += (22 * 2);
}
} }
else { else {
var right = progressWin.screen.width + X_OFFSET - X_WINDOWLESS_OFFSET; var right = progressWin.screen.width + X_OFFSET - X_WINDOWLESS_OFFSET;
@ -145,11 +140,11 @@ Zotero.ProgressWindow = function(_window){
} }
if (_window) { if (_window) {
_progressWindow = _window.openDialog("chrome://zotero/chrome/progressWindow.xul", _progressWindow = _window.openDialog("chrome://zotero/content/progressWindow.xul",
"", "chrome,dialog=no,titlebar=no,popup=yes"); "", "chrome,dialog=no,titlebar=no,popup=yes");
} }
else { else {
_progressWindow = ww.openWindow(null, "chrome://zotero/chrome/progressWindow.xul", _progressWindow = ww.openWindow(null, "chrome://zotero/content/progressWindow.xul",
"", "chrome,dialog=no,titlebar=no,popup=yes", null); "", "chrome,dialog=no,titlebar=no,popup=yes", null);
} }
_progressWindow.addEventListener("pageshow", _onWindowLoaded, false); _progressWindow.addEventListener("pageshow", _onWindowLoaded, false);