Skip to content

Commit c734fc3

Browse files
Only render notebook container if visible (#188226)
Co-authored-by: Peng Lyu
1 parent d9d9e24 commit c734fc3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,9 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
18261826
this._overlayContainer.style.position = 'absolute';
18271827
this._overlayContainer.style.overflow = 'hidden';
18281828

1829-
this.layoutContainerOverShadowElement(dimension, position);
1829+
if (this._isVisible) {
1830+
this.layoutContainerOverShadowElement(dimension, position);
1831+
}
18301832

18311833
if (this._webviewTransparentCover) {
18321834
this._webviewTransparentCover.style.height = `${dimension.height}px`;

0 commit comments

Comments
 (0)