From 51d7959ccdb875ef25ba28d349ce795cffdf0c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Mon, 5 Nov 2018 14:50:18 +0200 Subject: [PATCH] Revert "Ensure the doc prefs window is smaller than screen height" This reverts commit 0fd28959bf01b40544e201f83e9d87b713aa0d7c. 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 --- chrome/content/zotero/bibliography.js | 2 +- chrome/content/zotero/integration/integrationDocPrefs.xul | 6 +++--- chrome/content/zotero/xpcom/integration.js | 2 +- chrome/skin/default/zotero/bibliography.css | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js index 236e8a1ea3..b5356b0070 100644 --- a/chrome/content/zotero/bibliography.js +++ b/chrome/content/zotero/bibliography.js @@ -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(); }; /* diff --git a/chrome/content/zotero/integration/integrationDocPrefs.xul b/chrome/content/zotero/integration/integrationDocPrefs.xul index a7c1175436..f438c2bee3 100644 --- a/chrome/content/zotero/integration/integrationDocPrefs.xul +++ b/chrome/content/zotero/integration/integrationDocPrefs.xul @@ -43,10 +43,10 @@