Skip to content

Commit

Permalink
Check timeline virtual scroll viewport size on component resize
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccollum-woolpert committed Jun 20, 2024
1 parent bab7a25 commit 501203c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export class GanttChartComponent<T = any>
this.resizeObserver = new ResizeObserver((entries) => {
if (entries.length) {
this.zone.run(() => {
this.viewPort.checkViewportSize();
this.viewPortWidth = entries[0].target.clientWidth;
this.changeDetector.markForCheck();
});
Expand Down

0 comments on commit 501203c

Please sign in to comment.