Skip to content

Commit

Permalink
[fixed] none integer slot spaces (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Nov 12, 2015
1 parent cb05c1a commit 58f008f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/eventLevels.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 58f008f

Please sign in to comment.