From c1f954ce48be43c19ad6c3f1dfa49ead032b2fcc Mon Sep 17 00:00:00 2001 From: rebornix Date: Fri, 12 Mar 2021 10:43:41 -0800 Subject: [PATCH] optimize scroll view from bottom. --- .../workbench/contrib/notebook/browser/view/notebookCellList.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts b/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts index 345e5e8e6bd..730330465aa 100644 --- a/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts +++ b/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts @@ -682,7 +682,7 @@ export class NotebookCellList extends WorkbenchList implements ID const endElementHeight = this.view.elementHeight(endIndex); if (endElementTop >= wrapperBottom) { - return this._revealInternal(startIndex, false, CellRevealPosition.Top); + return this._revealInternal(endIndex, false, CellRevealPosition.Bottom); } if (endElementTop < wrapperBottom) {