Revert fullscreen size-changed skip (#570)

Reverts the fullscreen displayMode guard added in #567. Skipping
size-changed measurement during fullscreen caused apps to not receive
an initial size report after the transition, breaking layout for some
apps.
This commit is contained in:
Mel Ludowise 2026-03-26 09:46:48 -07:00 • committed by GitHub
commit fd1186cc2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1287,13 +1287,6 @@ export class App extends Protocol<AppRequest, AppNotification, AppResult> {
scheduled = true;
requestAnimationFrame(() => {
scheduled = false;
// Hosts determine the container size in fullscreen, so size-changed
// notifications are not needed.
if (this._hostContext?.displayMode === "fullscreen") {
return;
}
const html = document.documentElement;
// Measure actual content height by temporarily overriding html sizing.