vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
969 stars 82 forks source link

No cut events | Fix height with content & duration #168

Closed parismst closed 10 months ago

parismst commented 10 months ago

Hello,

Thank you very much for providing us with the best calendar. I meant to ask is it possible not to cut the event, so to get the right height of the content along with the duration?

image

Thanks

vkurko commented 10 months ago

The height of each event corresponds to its duration. If you want the height to adjust to the content inside the events, then try adding the CSS rule

.ec-event {
    height: auto!important;
}
parismst commented 10 months ago

I've tried it, it doesn't work like that. Is there a way to display every half hour on the left side of the bar instead of an hour? Also, we have possibility to have the format 24 hours and not 12 hours?

vkurko commented 10 months ago

Please check slotDuration and slotLabelFormat options.

parismst commented 10 months ago

I hadn't noticed that. Thanks :)