From c3092f45b8855c3a18afdfbf2465b33197431623 Mon Sep 17 00:00:00 2001 From: jquense Date: Sun, 13 Sep 2015 19:48:49 +0300 Subject: [PATCH] [fixed] event rows incorrect duration styles --- src/EventCell.jsx | 4 ++-- src/utils/eventLevels.js | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) 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')