Commit 299ac399 authored by Kent Nielsen's avatar Kent Nielsen
Browse files

Fixing calendar in respect to interface-resize

parent 0ca4a6cc
......@@ -217,6 +217,7 @@ export default {
this.schedule = this.scheduleWeek12;
this.changeSchedule();
}
this.updateHalfHourSize();
},
initToday(){
......@@ -233,11 +234,7 @@ export default {
this.initToday();
this.updateHalfHourSize();
this.updateDaysInDisplay();
window.addEventListener("resize", this.updateDaysInDisplay);
},
updated(){
this.updateHalfHourSize();
this.updateDaysInDisplay();
new ResizeObserver(() => this.updateDaysInDisplay()).observe(document.getElementById("calendar"));
}
}
</script>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment