Tabs: fix active bar width when only one tab

pull/9089/head
Leopoldthecoder 2017-12-31 10:05:27 +08:00 committed by 杨奕
parent 46036317bb
commit f6ba1efea1
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@
return true; return true;
} else { } else {
tabSize = $el[`client${firstUpperCase(sizeName)}`]; tabSize = $el[`client${firstUpperCase(sizeName)}`];
if (sizeName === 'width') { if (sizeName === 'width' && this.tabs.length > 1) {
tabSize -= (index === 0 || index === this.tabs.length - 1) ? 20 : 40; tabSize -= (index === 0 || index === this.tabs.length - 1) ? 20 : 40;
} }
return false; return false;