From 21d5dac4b590cb30c4eeadc1f3f0e80c6d615b58 Mon Sep 17 00:00:00 2001 From: Robert Meyer Date: Tue, 12 Aug 2025 21:33:24 +0200 Subject: [PATCH] fix: expand/collapse after switching view --- packages/gantt/src/gantt.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/gantt/src/gantt.component.ts b/packages/gantt/src/gantt.component.ts index ffae5204..61461684 100644 --- a/packages/gantt/src/gantt.component.ts +++ b/packages/gantt/src/gantt.component.ts @@ -389,6 +389,7 @@ export class NgxGanttComponent extends GanttUpper implements OnInit, OnChanges, override changeView(type: GanttViewType) { super.changeView(type); + this.buildFlatItems(); this.viewportItems = this.flatItems.slice(this.rangeStart, this.rangeEnd); this.computeTempDataRefs(); }