Skip to content

Commit e610b0a

Browse files
committed
fix(grid): rebuild sizesCache on column auto-size to ensure accurate layout
1 parent 8483957 commit e610b0a

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
@@ -7610,6 +7610,9 @@ export abstract class IgxGridBaseDirective implements GridType,
76107610
if (colResized) {
76117611
this.resetCachedWidths();
76127612
this.cdr.detectChanges();
7613+
// Rebuild master's sizesCache once from updated calcPixelWidth values
7614+
this.headerContainer.resolveDataDiff();
7615+
this._horizontalForOfs.forEach(vfor => vfor.resolveDataDiff());
76137616
}
76147617

76157618
if (this.isColumnWidthSum) {

0 commit comments

Comments
 (0)