slotDuration of "24 hours" displays events differently than slotDuration of "1 day"
See original GitHub issue[FEATURE REQUEST] Currently, the event width is calculated based on the length of the timespan While this is an absolutely valid representation of the data, I would like to to have an option for rendering this as a full-day event to fit all the needed event metadata in the event card.
I have checked the source code but seems like only the event data is used and there is no way to adjust the size of the rendered event (would be happy to hear that I am wrong though).
Hacking the Seg.eventRange.instance
manually to set the adjust the start/end helps, but this is obviously not a valid option
Unfortunately, converting events to alllDay
is not an option for me because it also affects the event model, while I only need the UI to be adjusted.
I remember that the rendering used to be different in the 3.x.x versions: the events range was rounded to the bounds of the slots and then events were stacked vertically
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:7 (4 by maintainers)
Top GitHub Comments
Thanks for the demo and info. Does it work to use
slotDuration
as “1 day”?https://codepen.io/acerix/pen/pXWVXZ?editors=0010
demonstration: https://codepen.io/quasiunafantasia/pen/EBvBEo i am looking for an option to extend the event width to the width of the column(s) containing this event
so if I have an event starting at 9:00 and ending at 9-30 I would like it still to have a width of a day column, not 1/48 of a day column which is really tiny
basically i would like to have an option to have the event displayed width adjusted to the slot(s) start/end so that the short events would be still visible