From c3fac7a4e2fa0cca67c5844668e48861aaaa5e01 Mon Sep 17 00:00:00 2001 From: nidhiselling Date: Sat, 20 Dec 2025 21:50:15 +0530 Subject: [PATCH] fix: defer initial size measurement to ResizeObserver (#143) --- src/app.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index 31885302..5b3dd715 100644 --- a/src/app.ts +++ b/src/app.ts @@ -979,8 +979,7 @@ export class App extends Protocol { }); }; - sendBodySizeChanged(); - + // ResizeObserver will fire for initial layout and all subsequent changes const resizeObserver = new ResizeObserver(sendBodySizeChanged); // Observe both html and body to catch all size changes resizeObserver.observe(document.documentElement);