mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
Use overflow widgets dom node for context menus (#213929)
Fixes clipping of custom context menus in embedded editors, such as those in the chat view
This commit is contained in:
parent
290eb3df07
commit
9eba3ad2fc
|
@ -227,7 +227,7 @@ export class ContextMenuController implements IEditorContribution {
|
|||
// Show menu
|
||||
this._contextMenuIsBeingShownCount++;
|
||||
this._contextMenuService.showContextMenu({
|
||||
domForShadowRoot: useShadowDOM ? this._editor.getDomNode() : undefined,
|
||||
domForShadowRoot: useShadowDOM ? this._editor.getOverflowWidgetsDomNode() ?? this._editor.getDomNode() : undefined,
|
||||
|
||||
getAnchor: () => anchor,
|
||||
|
||||
|
|
Loading…
Reference in a new issue