Skip to content

Commit 03628e1

Browse files
authored
Merge pull request #10741 from IgniteUI/mkirova/fix-10664
fix(grid): In case grid causes the container to extend (flex contain…
2 parents 6911329 + 8ee9125 commit 03628e1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6500,12 +6500,10 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
65006500
this.tbody.nativeElement.style.display = 'none';
65016501
let res = !this.nativeElement.parentElement ||
65026502
this.nativeElement.parentElement.clientHeight === 0 ||
6503-
this.nativeElement.parentElement.clientHeight === renderedHeight;
6504-
if (!this.platform.isChromium && !this.platform.isFirefox) {
6503+
this.nativeElement.parentElement.clientHeight === renderedHeight ||
65056504
// If grid causes the parent container to extend (for example when container is flex)
65066505
// we should always auto-size since the actual size of the container will continuously change as the grid renders elements.
6507-
res = this.checkContainerSizeChange();
6508-
}
6506+
this.checkContainerSizeChange();
65096507
this.tbody.nativeElement.style.display = '';
65106508
return res;
65116509
}

0 commit comments

Comments
 (0)