Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCorentin Mors <corentin.mors@dashlane.com>2020-01-07 15:36:45 +0300
committerGitHub <noreply@github.com>2020-01-07 15:36:45 +0300
commit373e9d8eadc25a2bd6d250dd8f47d7ffbe69e338 (patch)
treeeda71fe14bdffe7f19dd134d0225ae1bf2708540 /src
parentafe517846f6562e75dd36bae4778c2aa60df346e (diff)
(Bugfix) Resizing grid wasn't updating rows number (#78)
Signed-off-by: Corentin Mors <corentin.mors@dashlane.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/VirtualGrid.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/VirtualGrid.vue b/src/components/VirtualGrid.vue
index 959d4075..971dc587 100644
--- a/src/components/VirtualGrid.vue
+++ b/src/components/VirtualGrid.vue
@@ -109,12 +109,14 @@ export default {
},
created() {
+ window.addEventListener('resize', this.onDocumentScroll)
window.addEventListener('scroll', this.onDocumentScroll)
},
mounted() {
this.onDocumentScroll()
},
beforeDestroy() {
+ window.removeEventListener('resize', this.onDocumentScroll)
window.removeEventListener('scroll', this.onDocumentScroll)
},