Using FullCalendar how can I adjust the height of the fc-event div?

前端 未结 6 1512
迷失自我
迷失自我 2021-01-14 13:40

I am using FullCalendar to display some events, but it is clipping the name of the event in week and day mode.

It appears fullcalendar is setting the height of the f

相关标签:
6条回答
  • My solution is more of a work-around for the issue than an actual solution. When setting the events, add \r\n in the title attribute to space it out a bit more.

    I spent a bit of time going through the js file to try and adjust how the height is calculated, but due to the switching of views, it got a bit messy.

    This will increase the height of the event without messing around with the positioning/css.

    0 讨论(0)
  • 2021-01-14 13:56

    in your fullcalendar.min.js change the defaultTimedEventDuration: "00:15:00" to whatever the time you required.

    0 讨论(0)
  • 2021-01-14 14:08

    e.g.

    .fc-event { height: 2em; }

    0 讨论(0)
  • 2021-01-14 14:11

    I simply figured it out. Just put the important rule in fullcalendar.css

    height: 50px !important;

    Cheers!

    0 讨论(0)
  • 2021-01-14 14:13

    try this

    .fc-time-grid .fc-slats td {
            height: 20px !important;
    }
    
    0 讨论(0)
  • 2021-01-14 14:15

    It may work if you go into the fullcalendar.css and change the heights.

    0 讨论(0)
提交回复
热议问题