Skip to content

Commit 2f94356

Browse files
MKirovaMKirova
authored andcommitted
fix(grid): In case grid casuses the container to extend (flex container) then autosize to prevent endless resizing.
1 parent 402fee7 commit 2f94356

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
@@ -6463,12 +6463,10 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
64636463
this.tbody.nativeElement.style.display = 'none';
64646464
let res = !this.nativeElement.parentElement ||
64656465
this.nativeElement.parentElement.clientHeight === 0 ||
6466-
this.nativeElement.parentElement.clientHeight === renderedHeight;
6467-
if (!this.platform.isChromium && !this.platform.isFirefox) {
6466+
this.nativeElement.parentElement.clientHeight === renderedHeight ||
64686467
// If grid causes the parent container to extend (for example when container is flex)
64696468
// we should always auto-size since the actual size of the container will continuously change as the grid renders elements.
6470-
res = this.checkContainerSizeChange();
6471-
}
6469+
this.checkContainerSizeChange();
64726470
this.tbody.nativeElement.style.display = '';
64736471
return res;
64746472
}

0 commit comments

Comments
 (0)