diff --git a/src/vs/base/browser/ui/contextview/contextview.ts b/src/vs/base/browser/ui/contextview/contextview.ts index 1c44f12d262..409f3c9497f 100644 --- a/src/vs/base/browser/ui/contextview/contextview.ts +++ b/src/vs/base/browser/ui/contextview/contextview.ts @@ -212,8 +212,8 @@ export class ContextView extends Disposable { around = { top: realAnchor.y, left: realAnchor.x, - width: realAnchor.width || 0, - height: realAnchor.height || 0 + width: realAnchor.width || 1, + height: realAnchor.height || 2 }; } diff --git a/src/vs/editor/contrib/contextmenu/contextmenu.ts b/src/vs/editor/contrib/contextmenu/contextmenu.ts index af631099fb7..0fd8b7ea21d 100644 --- a/src/vs/editor/contrib/contextmenu/contextmenu.ts +++ b/src/vs/editor/contrib/contextmenu/contextmenu.ts @@ -163,10 +163,6 @@ export class ContextMenuController implements IEditorContribution { anchor = { x: posx, y: posy }; } - // prevent menu from appearing right below the cursor - anchor.height = 1; - anchor.width = 2; - // Show menu this._contextMenuIsBeingShownCount++; this._contextMenuService.showContextMenu({