mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 14:30:13 +00:00
fixes #103166
This commit is contained in:
parent
3c96ef7d89
commit
b2d1932f68
|
@ -7,11 +7,3 @@
|
|||
min-width: 130px;
|
||||
}
|
||||
|
||||
.context-view-block {
|
||||
position: fixed;
|
||||
cursor: initial;
|
||||
left:0;
|
||||
top:0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
|
|
@ -66,6 +66,12 @@ export class ContextMenuHandler {
|
|||
// Render invisible div to block mouse interaction in the rest of the UI
|
||||
if (this.options.blockMouse) {
|
||||
this.block = container.appendChild($('.context-view-block'));
|
||||
this.block.style.position = 'fixed';
|
||||
this.block.style.cursor = 'initial';
|
||||
this.block.style.left = '0';
|
||||
this.block.style.top = '0';
|
||||
this.block.style.width = '100%';
|
||||
this.block.style.height = '100%';
|
||||
domEvent(this.block, EventType.MOUSE_DOWN)((e: MouseEvent) => e.stopPropagation());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue