Skip to content

Commit d1266c2

Browse files
MKirovaMayaKirova
authored andcommitted
chore(*): Check container size changes if there is container.
1 parent 826f937 commit d1266c2

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
@@ -6864,7 +6864,7 @@ export abstract class IgxGridBaseDirective implements GridType,
68646864
let res = !parentElement ||
68656865
parentElement.clientHeight === 0 ||
68666866
parentElement.clientHeight === renderedHeight;
6867-
if (res || this._autoSize) {
6867+
if (parentElement && (res || this._autoSize)) {
68686868
// If grid causes the parent container to extend (for example when container is flex)
68696869
// we should always auto-size since the actual size of the container will continuously change as the grid renders elements.
68706870
this._autoSize = false;

0 commit comments

Comments
 (0)