mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
fix bad next page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user