mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-16 22:10:27 +00:00
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:
commit
b697aa851f
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