Skip to content

Commit

Permalink
fix: Fix top part of 24hour event in week/day view (jquense#1732)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyunhanlin committed Aug 20, 2020
1 parent 932a888 commit e1e06b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/TimeSlots.js
Expand Up @@ -131,7 +131,7 @@ export function getSlotMetrics({ min: start, max: end, step, timeslots }) {
const rangeStartMin = positionFromDate(rangeStart)
const rangeEndMin = positionFromDate(rangeEnd)
const top =
rangeEndMin > step * (numSlots - 1) && !dates.eq(end, rangeEnd)
rangeEndMin > step * numSlots && !dates.eq(end, rangeEnd)
? ((rangeStartMin - step) / (step * numSlots)) * 100
: (rangeStartMin / (step * numSlots)) * 100

Expand Down

0 comments on commit e1e06b5

Please sign in to comment.