File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
projects/igniteui-angular/src/lib Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1427,6 +1427,9 @@ export class IgxGridForOfDirective<T> extends IgxForOfDirective<T> implements On
1427
1427
this . igxForOf = value ;
1428
1428
}
1429
1429
1430
+ @Input ( )
1431
+ public igxGridForOfUniqueSizeCache = false ;
1432
+
1430
1433
public get igxGridForOf ( ) {
1431
1434
return this . igxForOf ;
1432
1435
}
@@ -1436,7 +1439,7 @@ export class IgxGridForOfDirective<T> extends IgxForOfDirective<T> implements On
1436
1439
* @internal
1437
1440
*/
1438
1441
public get sizesCache ( ) : number [ ] {
1439
- if ( this . syncService . isMaster ( this ) ) {
1442
+ if ( this . igxGridForOfUniqueSizeCache || this . syncService . isMaster ( this ) ) {
1440
1443
return this . _sizesCache ;
1441
1444
}
1442
1445
return this . syncService . sizesCache ( this . igxForScrollOrientation ) ;
Original file line number Diff line number Diff line change 165
165
< div [style.max-height.px] ='maxContainerHeight '>
166
166
< div class ="igx-grid-thead__group " *ngFor ='let dimLevelColumns of columnDimensionsByLevel ' [style.width.px] ='grid.unpinnedWidth '>
167
167
< ng-template igxGridFor #headerVirtualContainer let-column
168
- [igxGridForOf] ="dimLevelColumns " [igxForScrollContainer] ="grid.parentVirtDir "
168
+ [igxGridForOf] ="dimLevelColumns " [igxGridForOfUniqueSizeCache] = ' true ' [ igxForScrollContainer] ="grid.parentVirtDir "
169
169
[igxForContainerSize] ="grid.unpinnedWidth " [igxForTrackBy] ="grid.trackColumnChanges "
170
170
[igxForSizePropName] ="'calcPixelWidth' " [igxForScrollOrientation] ="'horizontal' ">
171
171
< igx-grid-header-group [ngClass] ="column.headerGroupClasses "
You can’t perform that action at this time.
0 commit comments