Can I set the default slot height in FullCalendar?

It seems that the default is 20px, but I was hoping to raise this value, so an event whose length is 1 slot will be able to display the title and body of the event. Currently, when the event is the length of 1 time slot, only the title of the event is displayed.

+4
source share
1 answer

In fullcalendar.css you can change this line to adjust the height of the time interval

.fc-agenda-slots td div { height: 20px; } 

So, if your shortest event is half the length of the time interval (30min event, but 1x time interval), you will double this value


CAVEAT: As jjnguy pointed out, this change will disrupt the drag and resize functionality. This solves the problem of changing the default slot height, though.

+4
source

All Articles