Skip to content

Commit 8f3523f

Browse files
authored
Merge pull request #311486 from microsoft/cherry-pick/311474
[cherry-pick] Fix bad modal clipping
2 parents 78548e1 + 30701db commit 8f3523f

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)