fix[TagsView]: fix contextmenu position bug #850
This commit is contained in:
parent
9e04f58163
commit
89ce53e185
|
@ -104,7 +104,8 @@ export default {
|
|||
openMenu(tag, e) {
|
||||
this.visible = true
|
||||
this.selectedTag = tag
|
||||
this.left = e.clientX
|
||||
const offsetLeft = this.$el.getBoundingClientRect().left // container margin left
|
||||
this.left = e.clientX - offsetLeft + 15 // 15: margin right
|
||||
this.top = e.clientY
|
||||
},
|
||||
closeMenu() {
|
||||
|
|
Loading…
Reference in New Issue