mirror of https://github.com/nextcloud/bookmarks
VirtualScroll: Add window.resize listener
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
5283a002f2
commit
d072eebb40
|
@ -46,6 +46,10 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.onScroll()
|
||||
window.addEventListener('resize', this.onScroll)
|
||||
},
|
||||
destroyed() {
|
||||
window.removeEventListener('resize', this.onScroll)
|
||||
},
|
||||
methods: {
|
||||
onScroll() {
|
||||
|
|
Loading…
Reference in New Issue