Current Time Indicator and short Events are offset by step-size number of minutes
See original GitHub issueDo you want to request a feature or report a bug?
Bug / Regression caused by #1204
What’s the current behavior?
https://codesandbox.io/s/react-big-calendar-example-feofz
- Scroll down to current time.
- Notice that the current time indicator is off by 15 minutes (one step size)
See related issue with events here: https://codesandbox.io/s/react-big-calendar-example-e1o2n Events shorter than step-size minutes are offset.
What’s the expected behavior?
The current time indicator should be at current time.
Likely cause
When calculating the time line position we hit the top branch of this ternary if. The timeslot step (ex: 15) is subtracted from the number of minutes since calendar min.
A calendar starting at 00:00, ending at 23:59, with current time 14:00 has rangeStart/End 14*60=840
. We should be at 58,33% of the day, but (840-15)/(15*96)*100=57,29
. 15 minutes…
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
Current Time Indicator and short Events are offset by step-size ...
The timeslot step (ex: 15) is subtracted from the number of minutes since calendar min. A calendar starting at 00:00, ending at 23:59,...
Read more >RatingBar - Android Developers
android:isIndicator, Whether this rating bar is an indicator (and ... Gets the current rating (number of stars filled). ... void, setMin(int min).
Read more >InfoLabels - Official Kodi Wiki
TotalUnWatched, Returns the number of unwatched items in the current container. Container(id).ListItem(offset).Label, Shows ListItem.
Read more >android - Changing step values in seekbar? - Stack Overflow
I have a seekbar, while moving it I want to change values from 0 to 200. I have a TextView, where I display...
Read more >Functional Mock-up Interface Specification - FMI standard
A vector of floating point continuous-time variables representing the event indicators used to locate state events.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I suggest to revert #1204 the part introducing the breakage until it can be fixed without breaking time ranges for current time indicator and short events.
This does the trick for me:
Oh! I just noticed there’s a PR that possibly fixes the event issue over at https://github.com/intljusticemission/react-big-calendar/pull/1462