Skip to content

Commit 7838272

Browse files
authored
Merge branch 'master' into rkaraivanov/grid-clipboard-master
2 parents 7d5ee4e + cc4e334 commit 7838272

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,10 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
726726
}
727727
if (scrToBottom && !this._isAtBottomIndex) {
728728
const containerSize = parseInt(this.igxForContainerSize, 10);
729-
const scrollOffset = this.fixedUpdateAllElements(this._virtHeight - containerSize);
730-
this.dc.instance._viewContainer.element.nativeElement.style.top = -(scrollOffset) + 'px';
729+
const maxVirtScrollTop = this._virtHeight - containerSize;
730+
this._bScrollInternal = true;
731+
this._virtScrollTop = maxVirtScrollTop;
732+
this.scrollPosition = maxVirtScrollTop;
731733
return;
732734
}
733735
if (this._adjustToIndex) {

0 commit comments

Comments
 (0)