Multiline titles in fullcalendar 2.1.0-beta1/2 in day grid

百般思念 提交于 2019-12-04 21:16:29

问题


I just upgraded fullcalendar in my project from 1.5.2 to 2.1.0-beta2. Since then my event titles are cut in the first line (overflow hidden) because of a new CSS style introduced here:

https://github.com/arshaw/fullcalendar/commit/afe97d112a63c64f5e46a6ebfed144ccbf7a0a28

.fc-day-grid-event > .fc-content { /* force events to be one-line tall */ white-space: nowrap;

Is there any reason why events are forced to be one line tall? If I don't want this, is it ok to just overwrite this style or will this lead to unpredictable behavior somewhere? I couldn't find anything in the documentation nor using google.


回答1:


From https://code.google.com/p/fullcalendar/issues/detail?id=1992

This is how to disable single line titles

.fc-day-grid-event > .fc-content {
    white-space: normal;
}


来源:https://stackoverflow.com/questions/25272132/multiline-titles-in-fullcalendar-2-1-0-beta1-2-in-day-grid

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!