VirtualScroll: Add window.resize listener

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2022-07-27 14:24:29 +02:00
parent 5283a002f2
commit d072eebb40
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ export default {
},
mounted() {
this.onScroll()
window.addEventListener('resize', this.onScroll)
},
destroyed() {
window.removeEventListener('resize', this.onScroll)
},
methods: {
onScroll() {