This commit is contained in:
Daria Golova
2022-11-18 16:33:39 +03:00
2 changed files with 11 additions and 2 deletions

View File

@@ -222,6 +222,12 @@ export default {
this.hideDescriptionCard();
this.setDefaultTheme();
},
writeCardSize() {
this.cardSize = {
width: this.$refs["eventCard"].getBoundingClientRect().width,
height: this.calculateCardHeight - 8,
};
},
},
watch: {
changeFormWasClosed: {
@@ -234,6 +240,9 @@ export default {
},
},
},
mounted() {
this.writeCardSize();
},
};
</script>