Fixed disappearing tabs when the component is kept alive and the viewport is resized #697

This commit is contained in:
brunocalou 2017-06-25 16:06:57 -03:00
parent bca1f970b4
commit 672410822c

View file

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