mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-16 22:10:27 +00:00
Fixed disappearing tabs when the component is kept alive and the viewport is resized #697
This commit is contained in:
parent
bca1f970b4
commit
672410822c
1 changed files with 3 additions and 0 deletions
|
|
@ -275,6 +275,9 @@
|
|||
this.$refs.tabsContainer.scrollLeft = Math.min(scrollWidth, scrollLeft + clientWidth);
|
||||
}
|
||||
},
|
||||
activated() {
|
||||
this.calculateOnResize();
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
this.observeElementChanges();
|
||||
|
|
|
|||
Loading…
Reference in a new issue