mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Fix panel UI element appending logic to use closest toolbar reference
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
diff --git a/browser/components/customizableui/content/panelUI.js b/browser/components/customizableui/content/panelUI.js
|
||||
index 1805bad6c58e060533f634ed9e511c05cad3ded1..07aca3c94b725af8761f0fa7881926da71502d76 100644
|
||||
index 1805bad6c58e060533f634ed9e511c05cad3ded1..f153761e406535270343fa1f430dea4f740cb2fc 100644
|
||||
--- a/browser/components/customizableui/content/panelUI.js
|
||||
+++ b/browser/components/customizableui/content/panelUI.js
|
||||
@@ -544,8 +544,8 @@ const PanelUI = {
|
||||
@@ -496,8 +496,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");
|
||||
@@ -544,8 +543,8 @@ const PanelUI = {
|
||||
}
|
||||
|
||||
if (viewShown) {
|
||||
|
Reference in New Issue
Block a user