зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1457389 - Check if extension is in the overflow menu when setting fixedWidth on the popup. r=rpl
MozReview-Commit-ID: 3NqnOMpu18M --HG-- extra : rebase_source : 2e77701c8e9cf94983b97b4a80d170dd86da0424
This commit is contained in:
Родитель
e84b173ee2
Коммит
5369230cb7
|
@ -396,7 +396,9 @@ this.browserAction = class extends ExtensionAPI {
|
||||||
pendingPopup.destroy();
|
pendingPopup.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
let fixedWidth = this.widget.areaType == CustomizableUI.TYPE_MENU_PANEL;
|
let fixedWidth =
|
||||||
|
this.widget.areaType == CustomizableUI.TYPE_MENU_PANEL ||
|
||||||
|
this.widget.forWindow(window).overflowed;
|
||||||
return new ViewPopup(this.extension, window, popupURL, this.browserStyle, fixedWidth, blockParser);
|
return new ViewPopup(this.extension, window, popupURL, this.browserStyle, fixedWidth, blockParser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче