Skip to content

Commit

Permalink
fix(grid): update lint #2957
Browse files Browse the repository at this point in the history
  • Loading branch information
nrobakova committed Nov 12, 2018
1 parent 706bc8f commit 0bffa5f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1098,8 +1098,8 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
private _updateVScrollOffset() {
let scrollOffset = 0;
const vScroll = this.vh.instance.elementRef.nativeElement;
if(vScroll){
scrollOffset = this.fixedUpdateAllRows(this._virtScrollTop)
if (vScroll) {
scrollOffset = this.fixedUpdateAllRows(this._virtScrollTop);
scrollOffset = scrollOffset !== parseInt(this.igxForItemSize, 10) ? scrollOffset : 0;
}
this.dc.instance._viewContainer.element.nativeElement.style.top = -scrollOffset + 'px';
Expand Down

0 comments on commit 0bffa5f

Please sign in to comment.