From 599c6821b7fec0093db6eb2aac640f51557c3834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 14 Apr 2022 16:51:13 +0300 Subject: [PATCH] Ensure columns don't resize when switching tabs --- chrome/content/zotero/zoteroPane.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 17a3de3d94..38cf08b5a6 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -104,9 +104,12 @@ var ZoteroPane = new function() this.updateWindow(); window.addEventListener("resize", () => { this.updateWindow(); - this.updateToolbarPosition(); - this.updateTagsBoxSize(); - this.updateItemTreeColumnWidths(); + let tabsDeck = document.querySelector('#tabs-deck') + if (!tabsDeck || tabsDeck.getAttribute('selectedIndex') == 0) { + this.updateToolbarPosition(); + this.updateTagsBoxSize(); + this.updateItemTreeColumnWidths(); + } }); window.setTimeout(this.updateToolbarPosition.bind(this), 0);