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:
Sam Foster 2018-04-30 09:56:27 -07:00
Родитель e84b173ee2
Коммит 5369230cb7
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -396,7 +396,9 @@ this.browserAction = class extends ExtensionAPI {
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);
}