Skip to content

Commit 578f882

Browse files
committed
fix(grid): rebuild sizesCache on column auto-size to ensure accurate layout
1 parent 8ed1cfe commit 578f882

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

projects/igniteui-angular/grids/grid/src/grid-base.directive.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7587,6 +7587,9 @@ export abstract class IgxGridBaseDirective implements GridType,
75877587
if (colResized) {
75887588
this.resetCachedWidths();
75897589
this.cdr.detectChanges();
7590+
// Rebuild master's sizesCache once from updated calcPixelWidth values
7591+
this.headerContainer.resolveDataDiff();
7592+
this._horizontalForOfs.forEach(vfor => vfor.resolveDataDiff());
75907593
}
75917594

75927595
if (this.isColumnWidthSum) {

0 commit comments

Comments
 (0)