From 5c564db69e9b7c3d8516583edbf1992e2e7858cb Mon Sep 17 00:00:00 2001 From: Dmitry Romanov Date: Wed, 30 Oct 2024 19:30:54 -0400 Subject: [PATCH] Fix component initial window size #26 --- .../src/app/pages/main-display/main-display.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firebird-ng/src/app/pages/main-display/main-display.component.ts b/firebird-ng/src/app/pages/main-display/main-display.component.ts index 5c57163..e3e9fb9 100644 --- a/firebird-ng/src/app/pages/main-display/main-display.component.ts +++ b/firebird-ng/src/app/pages/main-display/main-display.component.ts @@ -691,6 +691,9 @@ export class MainDisplayComponent implements OnInit, AfterViewInit { window.addEventListener('resize', () => { this.onRendererElementResize(); }); + + // Set proper window size now + resizeInvoker(); } private onRendererElementResize() {