Skip to content

Commit ffec4d2

Browse files
committed
fix(for-of): allowing recalc sizes to be called for non-grid forofs
1 parent b6beace commit ffec4d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/igniteui-angular/src/lib/directives/for-of/for_of.directive.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,8 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
856856

857857
this.dc.instance._viewContainer.element.nativeElement.style.top = -(scrollOffset) + 'px';
858858

859+
this._zone.onStable.pipe(first()).subscribe(this.recalcUpdateSizes.bind(this));
860+
859861
this.dc.changeDetectorRef.detectChanges();
860862
if (prevStartIndex !== this.state.startIndex) {
861863
this.chunkLoad.emit(this.state);

0 commit comments

Comments
 (0)