mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-01 15:38:38 +00:00
Fixed zen browser tar output
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user