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();
|
this.updateWindow();
|
||||||
window.addEventListener("resize", () => {
|
window.addEventListener("resize", () => {
|
||||||
this.updateWindow();
|
this.updateWindow();
|
||||||
this.updateToolbarPosition();
|
let tabsDeck = document.querySelector('#tabs-deck')
|
||||||
this.updateTagsBoxSize();
|
if (!tabsDeck || tabsDeck.getAttribute('selectedIndex') == 0) {
|
||||||
this.updateItemTreeColumnWidths();
|
this.updateToolbarPosition();
|
||||||
|
this.updateTagsBoxSize();
|
||||||
|
this.updateItemTreeColumnWidths();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
window.setTimeout(this.updateToolbarPosition.bind(this), 0);
|
window.setTimeout(this.updateToolbarPosition.bind(this), 0);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue