Skip to content

Commit bb012a1

Browse files
committed
Fix first cell being revealed at the bottom
1 parent d1dbd72 commit bb012a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
12711271

12721272
private _revealInView(viewIndex: number) {
12731273
const firstIndex = this.view.firstVisibleIndex;
1274-
if (viewIndex < firstIndex) {
1274+
if (viewIndex <= firstIndex) {
12751275
this._revealInternal(viewIndex, true, CellRevealPosition.Top);
12761276
} else {
12771277
this._revealInternal(viewIndex, true, CellRevealPosition.Bottom);

0 commit comments

Comments
 (0)