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) {