closes #1688, Preferences window appears in wrong screen position on Windows

This commit is contained in:
Simon Kornblith 2010-07-06 10:37:16 +00:00
parent 35c44b7470
commit 43c57ec18c
2 changed files with 3 additions and 3 deletions

View File

@ -2397,7 +2397,7 @@ var ZoteroPane = new function()
}; };
window.openDialog('chrome://zotero/content/preferences/preferences.xul', window.openDialog('chrome://zotero/content/preferences/preferences.xul',
'zotero-prefs', 'zotero-prefs',
'chrome,titlebar,toolbar,' 'chrome,titlebar,toolbar,centerscreen,'
+ Zotero.Prefs.get('browser.preferences.instantApply', true) ? 'dialog=no' : 'modal', + Zotero.Prefs.get('browser.preferences.instantApply', true) ? 'dialog=no' : 'modal',
io io
); );

View File

@ -40,7 +40,7 @@ To add a new preference:
in Zotero.Prefs.observe() in Zotero.Prefs.observe()
--> -->
<prefwindow id="zotero-prefs" title="&zotero.preferences.title;" onload="moveToAlertPosition(); init()" onunload="Zotero_Preferences.onUnload()" <prefwindow id="zotero-prefs" title="&zotero.preferences.title;" onload="init()" onunload="Zotero_Preferences.onUnload()"
windowtype="zotero:pref" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" windowtype="zotero:pref" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
style="min-height: 600px"> style="min-height: 600px">