mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-29 03:41:51 +00:00
no-bug: Make sure to flush the document styles when showing essentials promo (gh-12908)
This commit is contained in:
@@ -84,7 +84,8 @@
|
||||
max-height: 16px;
|
||||
}
|
||||
|
||||
#appMenu-translate-button {
|
||||
#appMenu-translate-button,
|
||||
#translations-button-icon {
|
||||
list-style-image: url("translations.svg") !important;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,8 @@ export function createZenEssentialsPromo(container = undefined) {
|
||||
const element = document.createXULElement(TAG_NAME);
|
||||
section.appendChild(element);
|
||||
section.essentialsPromo = element;
|
||||
// Trigger re-calculation of pinned height to avoid any flickering
|
||||
void section.offsetHeight;
|
||||
updatePinnedHeight();
|
||||
return "created";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user