Ensure columns don't resize when switching tabs

This commit is contained in:
Adomas Venčkauskas 2022-04-14 16:51:13 +03:00
parent 1538a836b9
commit 599c6821b7

View file

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