Skip to content

Commit 04b3115

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Consider fixed grid height when calc size in case container is hidden.
1 parent 2ed8393 commit 04b3115

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
@@ -6941,7 +6941,7 @@ export abstract class IgxGridBaseDirective implements GridType,
69416941
} else {
69426942
gridHeight = parseInt(this._height, 10);
69436943
}
6944-
const height = this.getComputedHeight(this.tbodyContainer.nativeElement) || 0;
6944+
const height = this.getComputedHeight(this.tbodyContainer.nativeElement) || gridHeight || 0;
69456945

69466946
if (Math.round(height) === 0 || isNaN(gridHeight)) {
69476947
const bodyHeight = this.defaultTargetBodyHeight;

0 commit comments

Comments
 (0)