We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 672b278 commit c17019fCopy full SHA for c17019f
projects/igniteui-angular/src/lib/grids/grid-base.directive.ts
@@ -2970,9 +2970,11 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
2970
vertScrDC.addEventListener('scroll', this.scrollHandler);
2971
vertScrDC.addEventListener('wheel', () => this.wheelHandler());
2972
2973
- this.pinContainers.changes.subscribe(() => {
2974
- // on row pin containers change grid sizes should be recalculated.
2975
- this.calculateGridSizes();
+ this.pinContainers.changes.subscribe((c) => {
+ if (this.hasPinnedRecords) {
+ // on row pin containers change grid sizes should be recalculated.
2976
+ this.calculateGridSizes();
2977
+ }
2978
});
2979
}
2980
0 commit comments