fix(ZenCompactMode): update flashSidebarIfNecessary to recalculate URL height after exiting fullscreen

This commit is contained in:
mr. m
2025-04-13 17:46:55 +02:00
parent f5c6fc13a8
commit ad38e6c15e

View File

@@ -95,6 +95,9 @@ var gZenCompactModeManager = {
},
flashSidebarIfNecessary(aInstant = false) {
// This function is called after exiting DOM fullscreen mode,
// so we do a bit of a hack to re-calculate the URL height
gURLBar.zenUpdateLayoutBreakout();
if (!aInstant && this.preference && lazyCompactMode.COMPACT_MODE_FLASH_ENABLED && !gZenGlanceManager._animating) {
this.flashSidebar();
}