Skip to content

Commit

Permalink
[fixed] month event rows not fitting in their cells
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Nov 12, 2015
1 parent f4b18d6 commit d5a0d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/eventLevels.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit d5a0d20

Please sign in to comment.