Skip to content

Commit 79612fb

Browse files
authored
Merge pull request #311474 from mjbvz/dev/mjbvz/sparkling-wasp
Fix bad modal clipping
2 parents a5656c9 + 15aa7f4 commit 79612fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
19461946

19471947
const modalEditorContainer = this.editorGroupsService.activeModalEditorPart?.modalElement;
19481948
let clippingContainer: HTMLElement | undefined;
1949-
if (DOM.isHTMLElement(modalEditorContainer)) {
1949+
if (DOM.isHTMLElement(modalEditorContainer) && modalEditorContainer.contains(shadowElement)) {
19501950
clippingContainer = modalEditorContainer;
19511951
} else {
19521952
clippingContainer = this.layoutService.getContainer(DOM.getWindow(this.getDomNode()), Parts.EDITOR_PART);

0 commit comments

Comments
 (0)