diff --git a/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts b/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts index 19498a1055d..e51a8c00de2 100644 --- a/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts +++ b/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts @@ -1040,6 +1040,11 @@ export class NotebookCellList extends WorkbenchList implements ID layout(height?: number, width?: number): void { this._isInLayout = true; super.layout(height, width); + if (this.renderHeight === 0) { + this.view.domNode.style.visibility = 'hidden'; + } else { + this.view.domNode.style.visibility = 'initial'; + } this._isInLayout = false; }