mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-06 19:38:24 +00:00
55 lines
1.9 KiB
C++
55 lines
1.9 KiB
C++
diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js
|
|
index f4d5125d9a1c8f0aef24536ca7d2ef3f133d8a99..cacd7f465e67226de4a366354779c6cb0cbd0b4c 100644
|
|
--- a/browser/base/content/browser-addons.js
|
|
+++ b/browser/base/content/browser-addons.js
|
|
@@ -1057,7 +1057,7 @@ var gXPInstallObserver = {
|
|
persistent: true,
|
|
hideClose: true,
|
|
popupOptions: {
|
|
- position: "bottomright topright",
|
|
+ position: gZenUIManager.panelUIPosition,
|
|
},
|
|
};
|
|
|
|
@@ -1266,7 +1266,7 @@ var gXPInstallObserver = {
|
|
hideClose: true,
|
|
timeout: Date.now() + 30000,
|
|
popupOptions: {
|
|
- position: "bottomright topright",
|
|
+ position: gZenUIManager.panelUIPosition,
|
|
},
|
|
};
|
|
|
|
@@ -2571,7 +2571,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,
|
|
});
|
|
}
|
|
@@ -2758,18 +2758,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);
|
|
|
|
this.updateAttention();
|
|
+ await gZenVerticalTabsManager._postCustomize();
|
|
},
|
|
|
|
async moveWidget(menu, direction) {
|