Skip to content

Commit 959eac3

Browse files
authored
Fix layout errors for hidden cells. (microsoft#202617)
1 parent 3d0c49a commit 959eac3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2251,6 +2251,11 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
22512251
return;
22522252
}
22532253

2254+
if (this._list.getViewIndex(cell) === undefined) {
2255+
// Cell can be hidden
2256+
return;
2257+
}
2258+
22542259
if (this._list.elementHeight(cell) === height) {
22552260
return;
22562261
}

0 commit comments

Comments
 (0)