From 0fd28959bf01b40544e201f83e9d87b713aa0d7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Mon, 20 Aug 2018 12:42:45 +0300 Subject: [PATCH] Ensure the doc prefs window is smaller than screen height Dynamically resizes the style picker up to the window height of 700px --- 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, 5 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js index 50d4af371f..e2b73b4f7a 100644 --- a/chrome/content/zotero/bibliography.js +++ b/chrome/content/zotero/bibliography.js @@ -239,7 +239,7 @@ var Zotero_File_Interface_Bibliography = new function() { document.getElementById("citations").label = label; } - window.sizeToContent(); + window.resizeTo(window.outerWidth, Math.min(650, window.screen.availHeight)); }; /* diff --git a/chrome/content/zotero/integration/integrationDocPrefs.xul b/chrome/content/zotero/integration/integrationDocPrefs.xul index f438c2bee3..a7c1175436 100644 --- a/chrome/content/zotero/integration/integrationDocPrefs.xul +++ b/chrome/content/zotero/integration/integrationDocPrefs.xul @@ -43,10 +43,10 @@