From f2084ef49955582092f564aac2beb4e68f8adc84 Mon Sep 17 00:00:00 2001 From: jquense Date: Thu, 12 Nov 2015 09:51:26 -0500 Subject: [PATCH] [fixed] month event rows not fitting in their cells --- src/utils/eventLevels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/eventLevels.js b/src/utils/eventLevels.js index 7d858fcdf..73312a0d5 100644 --- a/src/utils/eventLevels.js +++ b/src/utils/eventLevels.js @@ -3,7 +3,7 @@ import { accessor as get } from './accessors'; export function eventSegments(event, first, last, { startAccessor, endAccessor, culture }){ let slots = dates.diff(first, last, 'day') - let start = dates.max(get(event, startAccessor), first); + let start = dates.max(dates.startOf(get(event, startAccessor), 'day'), first); let end = dates.min(dates.ceil(get(event, endAccessor), 'day'), dates.add(last, 1, 'day')) let span = dates.diff(start, end, 'day');