Merge pull request #864 from brunocalou/fix-tabs

Fixed disappearing tabs when the component is kept alive and the viewport is resized
This commit is contained in:
Pablo Henrique 2017-06-26 20:21:36 -03:00 committed by GitHub
commit b697aa851f

View file

@ -275,6 +275,9 @@
this.$refs.tabsContainer.scrollLeft = Math.min(scrollWidth, scrollLeft + clientWidth);
}
},
activated() {
this.calculateOnResize();
},
mounted() {
this.$nextTick(() => {
this.observeElementChanges();