Skip to content

Commit e1e06b5

Browse files
authored
fix: Fix top part of 24hour event in week/day view (jquense#1732)
1 parent 932a888 commit e1e06b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/TimeSlots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function getSlotMetrics({ min: start, max: end, step, timeslots }) {
131131
const rangeStartMin = positionFromDate(rangeStart)
132132
const rangeEndMin = positionFromDate(rangeEnd)
133133
const top =
134-
rangeEndMin > step * (numSlots - 1) && !dates.eq(end, rangeEnd)
134+
rangeEndMin > step * numSlots && !dates.eq(end, rangeEnd)
135135
? ((rangeStartMin - step) / (step * numSlots)) * 100
136136
: (rangeStartMin / (step * numSlots)) * 100
137137

0 commit comments

Comments
 (0)