提交 89ce53e1 编写于 作者: P Pan

fix[TagsView]: fix contextmenu position bug #850

上级 9e04f581
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册