Bug 1360028 - Use getBoundsWithoutFlushing instead of getBoundingClientRect on addon-progress-notification to set the min-height of the addon-install-confirmation notifaction. r=willdurand

Differential Revision: https://phabricator.services.mozilla.com/D205455
This commit is contained in:
Dão Gottwald 2024-03-28 14:21:58 +00:00
Родитель f5d241f24e
Коммит ec53092a1a
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -914,9 +914,9 @@ var gXPInstallObserver = {
let height = undefined;
if (PopupNotifications.isPanelOpen) {
let rect = document
.getElementById("addon-progress-notification")
.getBoundingClientRect();
let rect = window.windowUtils.getBoundsWithoutFlushing(
document.getElementById("addon-progress-notification")
);
height = rect.height;
}