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

@@ -69,8 +69,8 @@ export default {
selectedEvent: {}, selectedEvent: {},
showModal: false, showModal: false,
timeInformation: { timeInformation: {
dayStartTime: "08:00", dayStartTime: "00:00",
dayEndTime: "20:00", dayEndTime: "24:00",
}, },
eventsData: [], eventsData: [],
employeesData: [], employeesData: [],

View File

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