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',
'zotero-prefs',
'chrome,titlebar,toolbar,'
'chrome,titlebar,toolbar,centerscreen,'
+ Zotero.Prefs.get('browser.preferences.instantApply', true) ? 'dialog=no' : 'modal',
io
);

View file

@ -40,7 +40,7 @@ To add a new preference:
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"
style="min-height: 600px">
@ -840,4 +840,4 @@ To add a new preference:
]]>
</script>
<script src="preferences.js"/>
</prefwindow>
</prefwindow>