diff --git a/src/utils/eventLevels.js b/src/utils/eventLevels.js index 73312a0d5..3deac4858 100644 --- a/src/utils/eventLevels.js +++ b/src/utils/eventLevels.js @@ -8,9 +8,9 @@ export function eventSegments(event, first, last, { startAccessor, endAccessor, let span = dates.diff(start, end, 'day'); - span = Math.max(Math.min(span, slots), 1); + span = Math.floor(Math.max(Math.min(span, slots), 1)); - let padding = dates.diff(first, start, 'day'); + let padding = Math.floor(dates.diff(first, start, 'day')); return { event,