Skip to content

Commit 1e1a446

Browse files
authored
chore(*): Update the default row height if content size changed. (#17033)
1 parent d36c05b commit 1e1a446

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

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

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

38713871
this.verticalScrollContainer.contentSizeChange.pipe(filter(() => !this._init), throttleTime(30), destructor).subscribe(() => {
3872-
this.notifyChanges(true);
3872+
this.onContentSizeChange();
38733873
});
38743874

38753875
this.verticalScrollContainer.chunkPreload.pipe(filter(() => !this._init), destructor).subscribe(() => {
@@ -8229,6 +8229,10 @@ export abstract class IgxGridBaseDirective implements GridType,
82298229
return Object.keys(oldData[0]).join() !== Object.keys(newData[0]).join();
82308230
}
82318231

8232+
protected onContentSizeChange() {
8233+
this.notifyChanges(true);
8234+
}
8235+
82328236
/**
82338237
* Clears the current navigation service active node
82348238
*/

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

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

2056+
protected override onContentSizeChange() {
2057+
super.onContentSizeChange();
2058+
this.updateDefaultRowHeight();
2059+
}
2060+
20562061
/**
20572062
* @hidden @internal
20582063
*/

0 commit comments

Comments
 (0)