Skip to content

Commit da0f673

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Additional check in case row has no height.
1 parent 0654678 commit da0f673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7643,7 +7643,7 @@ export abstract class IgxGridBaseDirective implements GridType,
76437643

76447644
private updateDefaultRowHeight() {
76457645
if (this.dataRowList.length > 0 && this.dataRowList.first.cells && this.dataRowList.first.cells.length > 0) {
7646-
this._defaultRowHeight = parseFloat(this.document.defaultView.getComputedStyle(this.dataRowList.first.cells.first.nativeElement)?.getPropertyValue('height'));
7646+
this._defaultRowHeight = parseFloat(this.document.defaultView.getComputedStyle(this.dataRowList.first.cells.first.nativeElement)?.getPropertyValue('height')) || this.defaultRowHeight;
76477647
}
76487648
}
76497649

0 commit comments

Comments
 (0)