1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-25 03:22:58 +03:00

properly position context menu (fixes #215)

This commit is contained in:
Eugene Pankov 2017-10-13 20:33:10 +02:00
parent e52fd0a3dd
commit 11e0c36ebc

View File

@ -224,8 +224,8 @@ export class TerminalTabComponent extends BaseTabComponent {
if (event.type === 'mousedown') {
if (event.which === 3) {
this.contextMenu.popup({
x: event.pageX,
y: event.pageY,
x: event.pageX + this.content.nativeElement.getBoundingClientRect().left,
y: event.pageY + this.content.nativeElement.getBoundingClientRect().top,
async: true,
})
event.preventDefault()