fix bad next page

This commit is contained in:
Joao Moreno
2016-02-08 16:49:54 +01:00
parent 6bf8f1aecc
commit 6daaca3720

View File

@@ -259,7 +259,7 @@ export class List<T> implements IDisposable {
this.setFocus(lastPageIndex);
} else {
const previousScrollTop = this.view.getScrollTop();
this.view.setScrollTop(previousScrollTop + this.view.renderHeight);
this.view.setScrollTop(previousScrollTop + this.view.renderHeight - this.view.elementHeight(lastPageIndex));
if (this.view.getScrollTop() !== previousScrollTop) {
// Let the scroll event listener run