fix: window size persist
This commit is contained in:
parent
8463a27ca8
commit
12355de6cf
|
|
@ -10,6 +10,7 @@
|
|||
<!-- prettier-ignore -->
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
id="__addonRef__-syncManager"
|
||||
lang="en"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
|
|
@ -55,6 +56,11 @@
|
|||
});
|
||||
</script>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
min-width: 800px;
|
||||
min-height: 400px;
|
||||
}
|
||||
html,
|
||||
body,
|
||||
.viewport {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
<!-- prettier-ignore -->
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
id="__addonRef__-templateEditor"
|
||||
lang="en"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
|
|
@ -61,6 +62,11 @@
|
|||
});
|
||||
</script>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
min-width: 600px;
|
||||
min-height: 400px;
|
||||
}
|
||||
html,
|
||||
body,
|
||||
.viewport {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export async function showSyncManager() {
|
|||
const win = Zotero.getMainWindow().openDialog(
|
||||
`chrome://${config.addonRef}/content/syncManager.xhtml`,
|
||||
`${config.addonRef}-syncManager`,
|
||||
`chrome,centerscreen,resizable,status,width=800,height=400,dialog=no`,
|
||||
`chrome,centerscreen,resizable,status,dialog=no`,
|
||||
windowArgs,
|
||||
)!;
|
||||
await windowArgs._initPromise.promise;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export async function showTemplateEditor() {
|
|||
const _window = Zotero.getMainWindow().openDialog(
|
||||
`chrome://${config.addonRef}/content/templateEditor.xhtml`,
|
||||
`${config.addonRef}-templateEditor`,
|
||||
`chrome,centerscreen,resizable,status,width=600,height=400,dialog=no`,
|
||||
`chrome,centerscreen,resizable,status,dialog=no`,
|
||||
windowArgs,
|
||||
)!;
|
||||
addon.data.template.editor.window = _window;
|
||||
|
|
|
|||
Loading…
Reference in New Issue