diff --git a/src/virtual-scroll.ts b/src/virtual-scroll.ts
index ad46aa3..060551d 100644
--- a/src/virtual-scroll.ts
+++ b/src/virtual-scroll.ts
@@ -25,7 +25,8 @@ export interface ChangeEvent {
exportAs: 'virtualScroll',
template: `
+
`,
@@ -122,7 +123,7 @@ export class VirtualScrollComponent implements OnInit, OnChanges {
let d = this.calculateDimensions();
this.element.nativeElement.scrollTop = (Math.floor(index / d.itemsPerRow) * d.childHeight)
- - (d.childHeight * Math.min(index, this.bufferAmount));
+ - (d.childHeight * Math.min(index, this.bufferAmount));
this.refresh();
}
@@ -198,7 +199,7 @@ export class VirtualScrollComponent implements OnInit, OnChanges {
let maxStart = Math.max(0, maxStartEnd - d.itemsPerCol * d.itemsPerRow - d.itemsPerRow);
let start = Math.min(maxStart, Math.floor(indexByScrollTop) * d.itemsPerRow);
- this.topPadding = d.childHeight * Math.ceil(start / d.itemsPerRow) - (d.childHeight * Math.min(start, this.bufferAmount));;
+ this.topPadding = d.childHeight * Math.ceil(start / d.itemsPerRow) - (d.childHeight * Math.min(start, this.bufferAmount)); ;
start = !isNaN(start) ? start : -1;
end = !isNaN(end) ? end : -1;