Center the site-specific Quick Copy and proxy editing windows
On OS X these show up as sheets, but on Windows without this flag they appear in the top-left of the screen.
This commit is contained in:
parent
c152e81bed
commit
28301ea45f
2 changed files with 4 additions and 2 deletions
|
@ -177,7 +177,8 @@ Zotero_Preferences.Export = {
|
|||
}
|
||||
|
||||
var io = {domain: domain, format: format, ok: false};
|
||||
window.openDialog('chrome://zotero/content/preferences/quickCopySiteEditor.xul', "zotero-preferences-quickCopySiteEditor", "chrome, modal", io);
|
||||
window.openDialog('chrome://zotero/content/preferences/quickCopySiteEditor.xul',
|
||||
"zotero-preferences-quickCopySiteEditor", "chrome,modal,centerscreen", io);
|
||||
|
||||
if (!io.ok) {
|
||||
return;
|
||||
|
|
|
@ -72,7 +72,8 @@ Zotero_Preferences.Proxies = {
|
|||
showProxyEditor: function (index) {
|
||||
if(index == -1) return;
|
||||
window.openDialog('chrome://zotero/content/preferences/proxyEditor.xul',
|
||||
"zotero-preferences-proxyEditor", "chrome, modal", index !== undefined ? this._proxies[index] : null);
|
||||
"zotero-preferences-proxyEditor", "chrome,modal,centerscreen",
|
||||
index !== undefined ? this._proxies[index] : null);
|
||||
this.refreshProxyList();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue