Skip to content

Commit 3f77bc9

Browse files
committed
fix: Fixed overflow menu not being visible, b=closes #9009, c=no-component
1 parent 59263ea commit 3f77bc9

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/browser/components/customizableui/content/panelUI-js.patch

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/browser/components/customizableui/content/panelUI.js b/browser/components/customizableui/content/panelUI.js
2-
index 689205034d9df67ff1fe0ebbf4a3481a5f414391..2626b7286deb51f66b6ccbbc32d510139cacb109 100644
2+
index 689205034d9df67ff1fe0ebbf4a3481a5f414391..2fab7474f1038a7a3cd2f4b4798d59696900cc85 100644
33
--- a/browser/components/customizableui/content/panelUI.js
44
+++ b/browser/components/customizableui/content/panelUI.js
55
@@ -516,8 +516,7 @@ const PanelUI = {
@@ -12,7 +12,20 @@ index 689205034d9df67ff1fe0ebbf4a3481a5f414391..2626b7286deb51f66b6ccbbc32d51013
1212
.appendChild(tempPanel);
1313

1414
let multiView = document.createXULElement("panelmultiview");
15-
@@ -959,7 +958,7 @@ const PanelUI = {
15+
@@ -608,10 +607,12 @@ const PanelUI = {
16+
if (hasKids && !this.navbar.hasAttribute("nonemptyoverflow")) {
17+
this.navbar.setAttribute("nonemptyoverflow", "true");
18+
this.overflowPanel.setAttribute("hasfixeditems", "true");
19+
+ window.document.getElementById("zen-sidebar-top-buttons").setAttribute("nonemptyoverflow", "true");
20+
} else if (!hasKids && this.navbar.hasAttribute("nonemptyoverflow")) {
21+
PanelMultiView.hidePopup(this.overflowPanel);
22+
this.overflowPanel.removeAttribute("hasfixeditems");
23+
this.navbar.removeAttribute("nonemptyoverflow");
24+
+ window.document.getElementById("zen-sidebar-top-buttons").removeAttribute("nonemptyoverflow");
25+
}
26+
},
27+
28+
@@ -959,7 +960,7 @@ const PanelUI = {
1629
el.removeAttribute("data-lazy-l10n-id");
1730
});
1831

0 commit comments

Comments
 (0)