Skip to content

Commit

Permalink
fix active-bar's width and transform error when tabs 's tab-position …
Browse files Browse the repository at this point in the history
…is left/right
  • Loading branch information
victorting committed Jul 12, 2019
1 parent 41a7ec4 commit 052c391
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/tabs/src/tab-bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
if (sizeName === 'width' && this.tabs.length > 1) {
tabSize -= parseFloat(tabStyles.paddingLeft) + parseFloat(tabStyles.paddingRight);
}
offset += parseFloat(tabStyles.paddingLeft);
if (sizeName === 'width') {
offset += parseFloat(tabStyles.paddingLeft);
}
return false;
}
});
Expand Down

0 comments on commit 052c391

Please sign in to comment.