Skip to content

Commit e27829e

Browse files
MKirovaMayaKirova
authored andcommitted
chore(*): Update scrollOffset when container size changes.
1 parent 02aa37c commit e27829e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,10 @@ export class IgxGridForOfDirective<T, U extends T[] = T[]> extends IgxForOfDirec
16271627
const prevSize = parseInt(changes[containerSize].previousValue, 10);
16281628
const newSize = parseInt(changes[containerSize].currentValue, 10);
16291629
this._recalcOnContainerChange({prevSize, newSize});
1630+
if (changes[containerSize].previousValue) {
1631+
this.scrollComponent.scrollAmount = this.scrollComponent.nativeElement[this.igxForScrollOrientation === "horizontal" ? "scrollLeft" : "scrollTop"];
1632+
this._updateScrollOffset();
1633+
}
16301634
}
16311635
}
16321636

0 commit comments

Comments
 (0)