Fixes do masonry re-layout strategy.

This commit is contained in:
mateuswetah 2024-10-09 11:33:01 -03:00
parent 22fb17a1e2
commit 544dc64bcb
2 changed files with 15 additions and 1 deletions

View File

@ -102,7 +102,7 @@ export default {
data () {
return {
masonry: false,
shouldUseLegacyMasonyCols: false
shouldUseLegacyMasonyCols: false,
}
},
watch: {
@ -123,6 +123,13 @@ export default {
}
},
immediate: true
},
isFiltersMenuCompressed: {
handler() {
if (this.masonry !== false)
this.masonry.layout();
},
immediate: true
}
},
created() {

View File

@ -176,6 +176,13 @@ export default {
}
},
immediate: true
},
isFiltersMenuCompressed: {
handler() {
if (this.masonry !== false)
this.masonry.layout();
},
immediate: true
}
},
beforeUnmount() {