diff --git a/src/pages/calendar/components/CalendarBackground.vue b/src/pages/calendar/components/CalendarBackground.vue index b6155f4..9b036ce 100644 --- a/src/pages/calendar/components/CalendarBackground.vue +++ b/src/pages/calendar/components/CalendarBackground.vue @@ -64,17 +64,17 @@ export default { backgroundHeight() { return (this.timeCoil.length - 1) * this.pixelsPerHour + 48; }, - horizontalScrollPresence() { - return { - "scroll-x": this.ownersArrayLength > 3 && this.backgroundHeight < 855, - }; - }, filteredEventsByDate() { return this.eventsData.filter( ({ start }) => start.slice(0, 10) === this.currentDate.format("YYYY-MM-DD") ); }, + horizontalScrollPresence() { + return { + "scroll-x": this.ownersArrayLength > 3, + }; + }, }, methods: { calculateColumnPosition(elemIndex) { @@ -95,7 +95,7 @@ export default { }; }, calculateBackgroundWidth() { - this.backgroundWidth = this.$refs.backgroundWrapper.offsetWidth; + this.backgroundWidth = this.$refs.backgroundWrapper.scrollWidth; }, filterEventsByOwner(owner) { let filteredArray = []; @@ -118,8 +118,7 @@ export default {