Fix sidenav default buttons display bug
This commit is contained in:
parent
665f812bd1
commit
63c532398b
1 changed files with 3 additions and 3 deletions
|
@ -131,7 +131,7 @@
|
||||||
this._container?.removeEventListener('scroll', this._handleContainerScroll);
|
this._container?.removeEventListener('scroll', this._handleContainerScroll);
|
||||||
this._container = val;
|
this._container = val;
|
||||||
this._container.addEventListener('scroll', this._handleContainerScroll);
|
this._container.addEventListener('scroll', this._handleContainerScroll);
|
||||||
this.render();
|
this.render(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
get contextNotesPane() {
|
get contextNotesPane() {
|
||||||
|
@ -421,9 +421,9 @@
|
||||||
this.render();
|
this.render();
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render(force = false) {
|
||||||
// TEMP: only render sidenav when pane is visible
|
// TEMP: only render sidenav when pane is visible
|
||||||
if (this.container.id === "zotero-view-item"
|
if (!force && this.container.id === "zotero-view-item"
|
||||||
&& document.querySelector("#zotero-item-pane-content").selectedIndex !== "1"
|
&& document.querySelector("#zotero-item-pane-content").selectedIndex !== "1"
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue