Revert "Ensure the doc prefs window is smaller than screen height"
This reverts commit 0fd28959bf
.
The change causes citation style listbox to fail displaying bottom
entries, a flexed listbox xul bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=413336
This commit is contained in:
parent
ed2eafb41e
commit
51d7959ccd
4 changed files with 6 additions and 5 deletions
|
@ -235,7 +235,7 @@ var Zotero_File_Interface_Bibliography = new function() {
|
|||
document.getElementById("citations").label = label;
|
||||
}
|
||||
|
||||
window.resizeTo(window.outerWidth, Math.min(650, window.screen.availHeight));
|
||||
window.sizeToContent();
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -43,10 +43,10 @@
|
|||
|
||||
<script src="../include.js"/>
|
||||
<script src="../bibliography.js"/>
|
||||
<vbox id="zotero-bibliography-container" flex="1">
|
||||
<groupbox flex="1">
|
||||
<vbox id="zotero-bibliography-container">
|
||||
<groupbox>
|
||||
<caption label="&zotero.bibliography.style.label;"/>
|
||||
<listbox id="style-listbox" onselect="Zotero_File_Interface_Bibliography.styleChanged()" flex="1"/>
|
||||
<listbox id="style-listbox" onselect="Zotero_File_Interface_Bibliography.styleChanged()"/>
|
||||
<hbox align="right">
|
||||
<label id="manage-styles" class="text-link"
|
||||
onclick="Zotero_File_Interface_Bibliography.manageStyles()">&zotero.bibliography.manageStyles;</label>
|
||||
|
|
|
@ -1501,7 +1501,7 @@ Zotero.Integration.Session.prototype.setDocPrefs = Zotero.Promise.coroutine(func
|
|||
|
||||
// Make sure styles are initialized for new docs
|
||||
yield Zotero.Styles.init();
|
||||
yield Zotero.Integration.displayDialog('chrome://zotero/content/integration/integrationDocPrefs.xul', 'resizable', io);
|
||||
yield Zotero.Integration.displayDialog('chrome://zotero/content/integration/integrationDocPrefs.xul', '', io);
|
||||
|
||||
if (!io.style || !io.fieldType) {
|
||||
throw new Zotero.Exception.UserCancelled("document preferences window");
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#style-listbox
|
||||
{
|
||||
height: 19em;
|
||||
width: 325pt;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue