Fix overflowing itemPane and hidden contextPane for new profiles, in stacked view

Fixes #2305
This commit is contained in:
Martynas Bagdonas 2022-03-15 18:23:33 +02:00
parent 982b41359b
commit 26e4de500e
2 changed files with 6 additions and 3 deletions

View file

@ -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;
}

View file

@ -387,7 +387,7 @@
</splitter>
<!-- itemPane.xul -->
<vbox id="zotero-item-pane" zotero-persist="width height"/>
<vbox id="zotero-item-pane" zotero-persist="width height" height="300"/>
</box>
</hbox>
</vbox>
@ -417,7 +417,7 @@
orient="vertical"
collapse="after"
zotero-persist="state"
resizebefore="clsest"
resizebefore="closest"
resizeafter="closest"
onmousemove="ZoteroContextPane.update()"
oncommand="ZoteroContextPane.update()"