Skip to content

Commit

Permalink
fix(tab-bar): error in calculating the width of tab wrapper (didi#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyan0205 authored Apr 30, 2020
1 parent 88d0e74 commit 039f3f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/tab-bar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ export default {
return
}
this.wrapperW = this.$refs.wrapper.offsetWidth
const wrapperReact = this.$refs.wrapper.getBoundingClientRect()
this.wrapperW = wrapperReact.width
let contentWidth = 0
for (let i = 0, len = this.items.length; i < len; i++) {
Expand Down

0 comments on commit 039f3f6

Please sign in to comment.