diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index d2c73e938a8..d125813610d 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -3305,11 +3305,22 @@ export class FrozenColumn implements AfterViewInit { ngAfterViewInit() { this.zone.runOutsideAngular(() => { setTimeout(() => { - this.updateStickyPosition(); + this.recalculateColumns(); }, 1000); }); } + @HostListener('window:resize', ['$event']) + recalculateColumns() { + const siblings = DomHandler.siblings(this.el.nativeElement); + const index = DomHandler.index(this.el.nativeElement); + const time = (siblings.length - index + 1) * 50; + + setTimeout(() => { + this.updateStickyPosition(); + }, time); + } + _frozen: boolean = true; updateStickyPosition() {