mirror of
https://github.com/zen-browser/desktop.git
synced 2025-11-10 20:45:09 +00:00
37 lines
1.7 KiB
C++
37 lines
1.7 KiB
C++
diff --git a/browser/components/customizableui/content/panelUI.js b/browser/components/customizableui/content/panelUI.js
|
|
index 7156397d597579f745ea20ae2b9327433a31c8ec..23c15c60acd77150ea89bd6f2fa1685a0cfc37fd 100644
|
|
--- a/browser/components/customizableui/content/panelUI.js
|
|
+++ b/browser/components/customizableui/content/panelUI.js
|
|
@@ -518,8 +518,7 @@ const PanelUI = {
|
|
tempPanel.setAttribute("animate", "false");
|
|
}
|
|
tempPanel.setAttribute("context", "");
|
|
- document
|
|
- .getElementById(CustomizableUI.AREA_NAVBAR)
|
|
+ aAnchor.closest("toolbar")
|
|
.appendChild(tempPanel);
|
|
|
|
let multiView = document.createXULElement("panelmultiview");
|
|
@@ -610,10 +609,12 @@ const PanelUI = {
|
|
if (hasKids && !this.navbar.hasAttribute("nonemptyoverflow")) {
|
|
this.navbar.setAttribute("nonemptyoverflow", "true");
|
|
this.overflowPanel.setAttribute("hasfixeditems", "true");
|
|
+ window.document.getElementById("zen-sidebar-top-buttons").setAttribute("nonemptyoverflow", "true");
|
|
} else if (!hasKids && this.navbar.hasAttribute("nonemptyoverflow")) {
|
|
PanelMultiView.hidePopup(this.overflowPanel);
|
|
this.overflowPanel.removeAttribute("hasfixeditems");
|
|
this.navbar.removeAttribute("nonemptyoverflow");
|
|
+ window.document.getElementById("zen-sidebar-top-buttons").removeAttribute("nonemptyoverflow");
|
|
}
|
|
},
|
|
|
|
@@ -961,7 +962,7 @@ const PanelUI = {
|
|
el.removeAttribute("data-lazy-l10n-id");
|
|
});
|
|
|
|
- this.notificationPanel.openPopup(anchor, "bottomright topright");
|
|
+ this.notificationPanel.openPopup(anchor, gZenUIManager.panelUIPosition(this.notificationPanel, anchor));
|
|
},
|
|
|
|
_clearNotificationPanel() {
|