mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-02 05:39:18 +00:00
no-bug: Make sure to flush the document styles when showing essentials promo (gh-12908)
This commit is contained in:
@@ -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