update let to const on calculateIndicatorPos method

This commit is contained in:
Igor Ribeiro 2017-02-02 16:21:24 -02:00 committed by GitHub
parent 54b3b60a06
commit 499a6e8dfc

View file

@ -140,10 +140,10 @@
},
calculateIndicatorPos() {
if (this.$refs.tabHeader && this.$refs.tabHeader[this.activeTabNumber]) {
let tabsWidth = this.$el.offsetWidth;
let activeTab = this.$refs.tabHeader[this.activeTabNumber];
let left = activeTab.offsetLeft - this.$refs.tabsContainer.scrollLeft;
let right = tabsWidth - left - activeTab.offsetWidth;
const tabsWidth = this.$el.offsetWidth;
const activeTab = this.$refs.tabHeader[this.activeTabNumber];
const left = activeTab.offsetLeft - this.$refs.tabsContainer.scrollLeft;
const right = tabsWidth - left - activeTab.offsetWidth;
this.$refs.indicator.style.left = left + 'px';
this.$refs.indicator.style.right = right + 'px';