We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78548e1 + 30701db commit 8f3523fCopy full SHA for 8f3523f
src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts
@@ -1946,7 +1946,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
1946
1947
const modalEditorContainer = this.editorGroupsService.activeModalEditorPart?.modalElement;
1948
let clippingContainer: HTMLElement | undefined;
1949
- if (DOM.isHTMLElement(modalEditorContainer)) {
+ if (DOM.isHTMLElement(modalEditorContainer) && modalEditorContainer.contains(shadowElement)) {
1950
clippingContainer = modalEditorContainer;
1951
} else {
1952
clippingContainer = this.layoutService.getContainer(DOM.getWindow(this.getDomNode()), Parts.EDITOR_PART);
0 commit comments