Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Events with equal start, end dates are completely overlapping each other in 'day' view #2110

Closed
D0HaTeJIJI0 opened this issue Jan 24, 2022 · 6 comments

Comments

@D0HaTeJIJI0
Copy link

Do you want to request a feature or report a bug?
Report a bug

What's the current behavior?
Hi,

When I create 2 events which have start = end dates and start of 1 event is equal to start of the 2nd event, then in 'day' view those events are completely overlapping each other even thought dayLayoutAlgorithm is set to 'no-overlap'.

image
image

Workaround
In version 0.23.0 there is no such problem. So I had to downgrade to 0.23.0

@cutterbl
Copy link
Collaborator

cutterbl commented Jan 24, 2022

Really? Do you mean that start and end are the same in an event? Or that you have two events with matching start and end dates? This is what I'm seeing with the latest version. Notice the two events starting at 5 and ending at 6:30:
Screen Shot 2022-01-24 at 1 40 44 PM
Screen Shot 2022-01-24 at 1 41 14 PM

Side Note: That prop is only applied in TimeGrid views

@D0HaTeJIJI0
Copy link
Author

D0HaTeJIJI0 commented Jan 24, 2022

What I've meant is if we have 2 events: a, b, and a.start = a.end = b.start = b.end, than a is completely overlapped by b in 'day' layout

@D0HaTeJIJI0
Copy link
Author

It turned out that I cannot use 0.23.0 because some functionality is not working in this version. The last version without the bug I mentioned is 0.24.0

@cutterbl
Copy link
Collaborator

Just curious, but what is the use case for having items with equal start and end times? I look at Big Calendar like I might look at Outlook or gCal, where you create appointments and such on a calendar display. You're talking about creating events with no time span...

@D0HaTeJIJI0
Copy link
Author

I want to display events in calendar only in the end date because it's not important how long this event takes I just want to display the deadline of it

D0HaTeJIJI0 added a commit to D0HaTeJIJI0/react-big-calendar that referenced this issue Jan 26, 2022
…ping each other in the `day` view with dayLayoutAlgorithm=`no-overlap`
@D0HaTeJIJI0
Copy link
Author

Hi, would you consider my fix for this bug?

cutterbl added a commit that referenced this issue Jul 7, 2022
Thanks to D0HaTeJIJI0 for the fix here

#2110
@cutterbl cutterbl closed this as completed Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants