Ensure columns don't resize when switching tabs
This commit is contained in:
parent
1538a836b9
commit
599c6821b7
1 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue