Skip to content

Commit 60f3732

Browse files
authored
chore(*): Update the default row height if content size changed. (#17035)
1 parent 8f05c50 commit 60f3732

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3901,7 +3901,7 @@ export abstract class IgxGridBaseDirective implements GridType,
39013901
});
39023902

39033903
this.verticalScrollContainer.contentSizeChange.pipe(filter(() => !this._init), throttleTime(30), destructor).subscribe(() => {
3904-
this.notifyChanges(true);
3904+
this.onContentSizeChange();
39053905
});
39063906

39073907
this.verticalScrollContainer.chunkPreload.pipe(filter(() => !this._init), destructor).subscribe(() => {
@@ -8252,6 +8252,10 @@ export abstract class IgxGridBaseDirective implements GridType,
82528252
return Object.keys(oldData[0]).join() !== Object.keys(newData[0]).join();
82538253
}
82548254

8255+
protected onContentSizeChange() {
8256+
this.notifyChanges(true);
8257+
}
8258+
82558259
/**
82568260
* Clears the current navigation service active node
82578261
*/

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,6 +2135,11 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
21352135
this._dataView = data;
21362136
}
21372137

2138+
protected override onContentSizeChange() {
2139+
super.onContentSizeChange();
2140+
this.updateDefaultRowHeight();
2141+
}
2142+
21382143
/**
21392144
* @hidden @internal
21402145
*/

0 commit comments

Comments
 (0)