From 26e4de500e8ab1db1d3d06f5636987388fe5a1d5 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Tue, 15 Mar 2022 18:23:33 +0200 Subject: [PATCH] Fix overflowing itemPane and hidden contextPane for new profiles, in stacked view Fixes #2305 --- chrome/content/zotero/contextPane.js | 5 ++++- chrome/content/zotero/zoteroPane.xul | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/contextPane.js b/chrome/content/zotero/contextPane.js index c3ec88c34d..2d364b9016 100644 --- a/chrome/content/zotero/contextPane.js +++ b/chrome/content/zotero/contextPane.js @@ -211,7 +211,10 @@ var ZoteroContextPane = new function () { } _contextPaneSplitter.setAttribute('hidden', false); - _contextPane.setAttribute('collapsed', !(_contextPaneSplitter.getAttribute('state') != 'collapsed')); + // It seems that on heavy load (i.e. syncing) the line below doesn't set the correct value + setTimeout(() => { + _contextPane.setAttribute('collapsed', !(_contextPaneSplitter.getAttribute('state') != 'collapsed')); + }); _tabToolbar.hidden = false; } diff --git a/chrome/content/zotero/zoteroPane.xul b/chrome/content/zotero/zoteroPane.xul index f548ea976f..d096fba177 100644 --- a/chrome/content/zotero/zoteroPane.xul +++ b/chrome/content/zotero/zoteroPane.xul @@ -387,7 +387,7 @@ - + @@ -417,7 +417,7 @@ orient="vertical" collapse="after" zotero-persist="state" - resizebefore="clsest" + resizebefore="closest" resizeafter="closest" onmousemove="ZoteroContextPane.update()" oncommand="ZoteroContextPane.update()"