diff --git a/src/EventCell.jsx b/src/EventCell.jsx index b0657b4bf..f8bfa6b29 100644 --- a/src/EventCell.jsx +++ b/src/EventCell.jsx @@ -25,8 +25,8 @@ let EventCell = React.createClass({ style={{...props.style, ...style}} className={cn('rbc-event', className, xClassName, { 'rbc-selected': selected, - 'rbc-event-continues-prior': dates.lt(start, slotStart), - 'rbc-event-continues-after': dates.gt(end, slotEnd) + 'rbc-event-continues-prior': dates.lt(start, slotStart, 'day'), + 'rbc-event-continues-after': dates.gt(end, slotEnd, 'day') })} onClick={()=> onSelect(event)} > diff --git a/src/utils/eventLevels.js b/src/utils/eventLevels.js index 4538768f8..c57cd746f 100644 --- a/src/utils/eventLevels.js +++ b/src/utils/eventLevels.js @@ -1,13 +1,5 @@ import dates from './dates'; -import localizer from '../localizer'; import { accessor as get } from './accessors'; -//import canUseDom from 'dom-helpers/util/inDOM'; - -// let isIE = false; - -// if (canUseDom) { -// isIE = ('documentMode' in document) -// } export function eventSegments(event, first, last, { startAccessor, endAccessor, culture }){ let slots = dates.diff(first, last, 'day')