Fixed zen browser tar output

This commit is contained in:
Mauro Balades
2024-04-28 11:13:55 +02:00
parent fd556a1af2
commit fab0130724
8 changed files with 29 additions and 20 deletions

View File

@@ -101,11 +101,18 @@ var gZenBrowserManagerSidebar = {
addPanelButton.setAttribute("animate", "true");
this.sidebarElement.appendChild(addPanelButton);
}
this._updateArrowScrollMaxHeight(data.index.length + 1);
// We rerender multiple times for some reason, so we need to avoid the animation
if (this._firstRun < this.MAX_RUNS)
this._firstRun++;
},
_updateArrowScrollMaxHeight(num) {
let content = document.querySelector("#tabbrowser-arrowscrollbox::part(scrollbox-clip)");
let height = (this.MAX_SIDEBAR_PANELS - num) * 81;
content.style.maxHeight = `${height}px`;
},
async _openAddPanelDialog() {
let dialogURL = "chrome://browser/content/places/zenNewWebPanel.xhtml";
let features = "centerscreen,chrome,modal,resizable=no";