forked from AkkomaGang/admin-fe
fix[TagsView]: fix contextmenu position bug #850
This commit is contained in:
parent
9e04f58163
commit
89ce53e185
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue