Skip to content

Commit 15aa7f4

Browse files
mjbvzCopilot
andcommitted
Fix bad modal clipping
Fixes #311426 We only want to apply the modal clipping when the editor itself is in the modal Co-authored-by: Copilot <copilot@github.com>
1 parent a5656c9 commit 15aa7f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)