Skip to content

Commit

Permalink
Tab: fix tabs-item's padding cause active-bar's width and transform err(
Browse files Browse the repository at this point in the history
  • Loading branch information
victorting committed Jul 11, 2019
1 parent db0e26b commit d293563
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/tabs/src/tab-bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
tabSize = $el[`client${firstUpperCase(sizeName)}`];
let tabStyles = window.getComputedStyle($el);
if (sizeName === 'width' && this.tabs.length > 1) {
// tabSize -= (index === 0 || index === this.tabs.length - 1) ? 20 : 40;
tabSize -= parseFloat(tabStyles.paddingLeft) + parseFloat(tabStyles.paddingRight);
}
offset += parseFloat(tabStyles.paddingLeft);
Expand Down

0 comments on commit d293563

Please sign in to comment.