mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode cfbd1999769f4f08dce29629fb92fdc0fac53829
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ export interface IContextViewService extends IContextViewProvider {
|
||||
|
||||
showContextView(delegate: IContextViewDelegate, container?: HTMLElement, shadowRoot?: boolean): IDisposable;
|
||||
hideContextView(data?: any): void;
|
||||
getContextViewElement(): HTMLElement;
|
||||
layout(): void;
|
||||
anchorAlignment?: AnchorAlignment;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,10 @@ export class ContextViewService extends Disposable implements IContextViewServic
|
||||
return disposable;
|
||||
}
|
||||
|
||||
getContextViewElement(): HTMLElement {
|
||||
return this.contextView.getViewElement();
|
||||
}
|
||||
|
||||
layout(): void {
|
||||
this.contextView.layout();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user