fx115: Generate bibliography and doc prefs dialog fixes

- Use min-width: 100vw on the <dialog> element to prevent
  window.sizeToContent() from expanding the dialog unnecessarily on
  style selection
- Set the window min-width since fx115 width attribute on the window is
  ignored
- Set ids to persist position and dimensions
This commit is contained in:
Adomas Venčkauskas 2024-04-04 15:06:10 +03:00
parent 9df39c941b
commit 34d857d310
3 changed files with 17 additions and 4 deletions

View file

@ -7,6 +7,9 @@
<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
persist="screenX screenY width height sizemode"
id="bibliography-window"
class="bibliography-window"
title="&zotero.bibliography.title;"
onload="Zotero_File_Interface_Bibliography.init()">
<dialog

View file

@ -31,6 +31,9 @@
<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
id="integration-doc-prefs"
class="bibliography-window"
persist="screenX screenY width height sizemode"
title="&zotero.integration.docPrefs.title;"
onload="Zotero_File_Interface_Bibliography.init();"
>
@ -38,11 +41,9 @@
id="zotero-doc-prefs-dialog"
orient="vertical"
buttons="accept,cancel,help"
persist="screenX screenY"
ondialogaccept="Zotero_File_Interface_Bibliography.acceptSelection();"
ondialoghelp="Zotero_File_Interface_Bibliography.openHelpLink();"
onclose="document.documentElement.cancelDialog(); event.preventDefault(); event.stopPropagation();"
style="width: 600px">
onclose="document.documentElement.cancelDialog(); event.preventDefault(); event.stopPropagation();">
<script src="../include.js"/>
<script src="../bibliography.js"/>

View file

@ -1,7 +1,16 @@
.bibliography-window
{
min-width: 400pt;
}
dialog
{
max-width: 100vw;
}
#style-listbox
{
height: 14rem;
width: 325pt;
}
#manage-styles {