From b0c320594f68ea69f32afb6aaa52110bbbc5d7ed Mon Sep 17 00:00:00 2001 From: rebornix Date: Wed, 28 Oct 2020 11:01:48 -0700 Subject: [PATCH] fix #108629. --- .../contrib/notebook/browser/view/notebookCellList.ts | 5 +++++ 1 file changed, 5 insertions(+) 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; }