We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 886d14c commit 723ef61Copy full SHA for 723ef61
2 files changed
src/vs/base/browser/ui/contextview/contextview.ts
@@ -212,8 +212,8 @@ export class ContextView extends Disposable {
212
around = {
213
top: realAnchor.y,
214
left: realAnchor.x,
215
- width: realAnchor.width || 0,
216
- height: realAnchor.height || 0
+ width: realAnchor.width || 1,
+ height: realAnchor.height || 2
217
};
218
}
219
src/vs/editor/contrib/contextmenu/contextmenu.ts
@@ -163,10 +163,6 @@ export class ContextMenuController implements IEditorContribution {
163
anchor = { x: posx, y: posy };
164
165
166
- // prevent menu from appearing right below the cursor
167
- anchor.height = 1;
168
- anchor.width = 2;
169
-
170
// Show menu
171
this._contextMenuIsBeingShownCount++;
172
this._contextMenuService.showContextMenu({
0 commit comments