Skip to content

Commit

Permalink
[fixed] event rows incorrect duration styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Sep 13, 2015
1 parent dade2b9 commit c3092f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/EventCell.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
>
Expand Down
8 changes: 0 additions & 8 deletions src/utils/eventLevels.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit c3092f4

Please sign in to comment.