From 7b8db909fc45e1bf69e847d311d0d8deadd16771 Mon Sep 17 00:00:00 2001 From: Daria Golova Date: Wed, 26 Oct 2022 16:01:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB?= =?UTF-8?q?=D0=B0=20=D1=81=D0=BA=D1=80=D0=BE=D0=BB=D0=BB=D1=8B,=20=D0=B7?= =?UTF-8?q?=D0=B0=D1=84=D0=B8=D0=BA=D1=81=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BB=D0=B0=20=D1=85=D0=B5=D0=B4=D0=B5=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/CalendarBackground.vue | 15 +++++----- .../calendar/components/CalendarColumn.vue | 7 +++-- .../calendar/components/CalendarHeader.vue | 4 ++- .../calendar/components/CalendarSchedule.vue | 30 ++++++------------- 4 files changed, 24 insertions(+), 32 deletions(-) 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 {