-
-
Notifications
You must be signed in to change notification settings - Fork 864
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
If dayEndHour is lower than dayStartHour the calendar disappears completely #1629
Comments
Thanks so much for opening an issue! If you'd like to support this project, then please consider sponsoring me |
Looking a bit at the source code in calendar-utils.ts I've seen the obvious problem.. the Day component cant show 24 hours that are flowing into the next day in one instance.. some extensive tweaking will be needed here.. So its basically a feature request rather than a bug. I'll see if I can deliver a PR that'll do the job when using Day view and not the whole week.. What you can do in the mean time as a workaround and that's what I did, is to add another Day View component below the first one, make the first one start at 7 (no need for end time, it will automatically end at 11 pm), and the second one end at 6 am (no need for start time, it will automatically start at 12 am) A bit of CSS, and it looks seamless. Example:
|
Describe the bug
If for example I want the calendar to start from 8 am, and end at 7 am, I set the dayStartHour to 8 and the dayEndHour to 7, when doing that, the calendar disappears completely and does not render.
Minimal reproduction of the problem with instructions
set the mwl-calendar-day-view component's inputs dayStartHour=8 dayEndHour=7
Screenshots
Code:
result:
Versions
@angular/core
: 12.0.0angular-calendar
: 0.28.11The text was updated successfully, but these errors were encountered: