Skip to content

Commit b2d1932

Browse files
committed
1 parent 3c96ef7 commit b2d1932

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/vs/platform/contextview/browser/contextMenuHandler.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,3 @@
77
min-width: 130px;
88
}
99

10-
.context-view-block {
11-
position: fixed;
12-
cursor: initial;
13-
left:0;
14-
top:0;
15-
width: 100%;
16-
height: 100%;
17-
}

src/vs/platform/contextview/browser/contextMenuHandler.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ export class ContextMenuHandler {
6666
// Render invisible div to block mouse interaction in the rest of the UI
6767
if (this.options.blockMouse) {
6868
this.block = container.appendChild($('.context-view-block'));
69+
this.block.style.position = 'fixed';
70+
this.block.style.cursor = 'initial';
71+
this.block.style.left = '0';
72+
this.block.style.top = '0';
73+
this.block.style.width = '100%';
74+
this.block.style.height = '100%';
6975
domEvent(this.block, EventType.MOUSE_DOWN)((e: MouseEvent) => e.stopPropagation());
7076
}
7177

0 commit comments

Comments
 (0)