-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
fix overlapping background events, fixes #2452 #2510
fix overlapping background events, fixes #2452 #2510
Conversation
Thanks for the feedback! I'll go ahead and make the necessary updates to have |
I'm not sure of the rationale behind why |
@chazzlabs Looks great. Nice work. |
🎉 This PR is included in version 1.10.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR addresses two issues with how background events are rendered using both the
overlap
andno-overlap
layout algorithms. I opted for the change I made due to its simplicity and the unlikelihood that it would have any adverse effects elsewhere in the calendar. It appears to me that the implementation of theno-overlap
layout algorithm very deliberately returns different types for thewidth
andxOffset
style values than does theoverlap
algorithm; given this it seemed most reasonable to correct how those values are handled when rendering events inTimeGridEvent
.I added two stories under "Additional Examples > Layout" to demonstrate the
overlap
/no-overlap
behavior since that seemed like the most appropriate location for them.