Skip to content

Commit

Permalink
update tag-page-opened
Browse files Browse the repository at this point in the history
  • Loading branch information
zhigang.li committed Jan 12, 2018
1 parent c833748 commit 9ee9774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/main-components/tags-page-opened.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default {
this.tagBodyLeft = -tag.offsetLeft + 10;
} else if (tag.offsetLeft + 10 > -this.tagBodyLeft && tag.offsetLeft + tag.offsetWidth < -this.tagBodyLeft + this.$refs.scrollCon.offsetWidth - 100) {
// 标签在可视区域
this.tagBodyLeft = Math.min(0, this.$refs.scrollCon.offsetWidth - 100 - tag.offsetWidth - tag.offsetLeft - 10);
this.tagBodyLeft = Math.min(0, this.$refs.scrollCon.offsetWidth - 100 - tag.offsetWidth - tag.offsetLeft - 20);
} else {
// 标签在可视区域右侧
this.tagBodyLeft = -(tag.offsetLeft - (this.$refs.scrollCon.offsetWidth - 100 - tag.offsetWidth) + 20);
Expand Down

0 comments on commit 9ee9774

Please sign in to comment.