Skip to content

Commit de4312f

Browse files
authored
chore(*): Update the default row height if content size changed. (#17034)
1 parent 4ea7b71 commit de4312f

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
@@ -3857,7 +3857,7 @@ export abstract class IgxGridBaseDirective implements GridType,
38573857
});
38583858

38593859
this.verticalScrollContainer.contentSizeChange.pipe(filter(() => !this._init), throttleTime(30), destructor).subscribe(() => {
3860-
this.notifyChanges(true);
3860+
this.onContentSizeChange();
38613861
});
38623862

38633863
this.verticalScrollContainer.chunkPreload.pipe(filter(() => !this._init), destructor).subscribe(() => {
@@ -8213,6 +8213,10 @@ export abstract class IgxGridBaseDirective implements GridType,
82138213
return Object.keys(oldData[0]).join() !== Object.keys(newData[0]).join();
82148214
}
82158215

8216+
protected onContentSizeChange() {
8217+
this.notifyChanges(true);
8218+
}
8219+
82168220
/**
82178221
* Clears the current navigation service active node
82188222
*/

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)