From 501203c915de754ee6b920ca8b52b7b69dcf8864 Mon Sep 17 00:00:00 2001 From: Jason McCollum Date: Thu, 20 Jun 2024 09:38:11 -0700 Subject: [PATCH] Check timeline virtual scroll viewport size on component resize --- .../app/shared/components/gantt-chart/gantt-chart.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/application/frontend/src/app/shared/components/gantt-chart/gantt-chart.component.ts b/application/frontend/src/app/shared/components/gantt-chart/gantt-chart.component.ts index 01dd70bd..a5ed662d 100644 --- a/application/frontend/src/app/shared/components/gantt-chart/gantt-chart.component.ts +++ b/application/frontend/src/app/shared/components/gantt-chart/gantt-chart.component.ts @@ -173,6 +173,7 @@ export class GanttChartComponent this.resizeObserver = new ResizeObserver((entries) => { if (entries.length) { this.zone.run(() => { + this.viewPort.checkViewportSize(); this.viewPortWidth = entries[0].target.clientWidth; this.changeDetector.markForCheck(); });