mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-03 00:18:37 +00:00
55 lines
2.0 KiB
C++
55 lines
2.0 KiB
C++
diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js
|
|
index d7542a38a0242dd9c9c6390171d59992d75a0c19..d20e5a9fa42c88c7ba28fac1ef13dd693f1f1135 100644
|
|
--- a/browser/base/content/browser-addons.js
|
|
+++ b/browser/base/content/browser-addons.js
|
|
@@ -1064,7 +1064,7 @@ var gXPInstallObserver = {
|
|
persistent: true,
|
|
hideClose: true,
|
|
popupOptions: {
|
|
- position: "bottomright topright",
|
|
+ position: gZenUIManager.panelUIPosition,
|
|
},
|
|
};
|
|
|
|
@@ -1273,7 +1273,7 @@ var gXPInstallObserver = {
|
|
hideClose: true,
|
|
timeout: Date.now() + 30000,
|
|
popupOptions: {
|
|
- position: "bottomright topright",
|
|
+ position: gZenUIManager.panelUIPosition,
|
|
},
|
|
};
|
|
|
|
@@ -2608,7 +2608,7 @@ var gUnifiedExtensions = {
|
|
this.recordButtonTelemetry(reason || "extensions_panel_showing");
|
|
this.ensureButtonShownBeforeAttachingPanel(panel);
|
|
PanelMultiView.openPopup(panel, this._button, {
|
|
- position: "bottomright topright",
|
|
+ position: gZenUIManager.panelUIPosition,
|
|
triggerEvent: aEvent,
|
|
});
|
|
}
|
|
@@ -2795,18 +2795,20 @@ var gUnifiedExtensions = {
|
|
this._maybeMoveWidgetNodeBack(widgetId);
|
|
}
|
|
|
|
- this.pinToToolbar(widgetId, shouldPinToToolbar);
|
|
+ await this.pinToToolbar(widgetId, shouldPinToToolbar);
|
|
},
|
|
|
|
- pinToToolbar(widgetId, shouldPinToToolbar) {
|
|
+ async pinToToolbar(widgetId, shouldPinToToolbar) {
|
|
let newArea = shouldPinToToolbar
|
|
? CustomizableUI.AREA_NAVBAR
|
|
: CustomizableUI.AREA_ADDONS;
|
|
let newPosition = shouldPinToToolbar ? undefined : 0;
|
|
+ await gZenVerticalTabsManager._preCustomize();
|
|
|
|
CustomizableUI.addWidgetToArea(widgetId, newArea, newPosition);
|
|
// addWidgetToArea() will trigger onWidgetAdded or onWidgetMoved as needed,
|
|
// and our handlers will call updateAttention() as needed.
|
|
+ await gZenVerticalTabsManager._postCustomize();
|
|
},
|
|
|
|
async moveWidget(menu, direction) {
|