Skip to content

Commit 723ef61

Browse files
committed
1 parent 886d14c commit 723ef61

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/vs/base/browser/ui/contextview/contextview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ export class ContextView extends Disposable {
212212
around = {
213213
top: realAnchor.y,
214214
left: realAnchor.x,
215-
width: realAnchor.width || 0,
216-
height: realAnchor.height || 0
215+
width: realAnchor.width || 1,
216+
height: realAnchor.height || 2
217217
};
218218
}
219219

src/vs/editor/contrib/contextmenu/contextmenu.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ export class ContextMenuController implements IEditorContribution {
163163
anchor = { x: posx, y: posy };
164164
}
165165

166-
// prevent menu from appearing right below the cursor
167-
anchor.height = 1;
168-
anchor.width = 2;
169-
170166
// Show menu
171167
this._contextMenuIsBeingShownCount++;
172168
this._contextMenuService.showContextMenu({

0 commit comments

Comments
 (0)