日历网格中的fullcalendar 2.1.0-beta1/2中的多行标题

chm*_*lot 7 fullcalendar

我刚刚将我的项目中的fullcalendar从1.5.2升级到2.1.0-beta2.从那时起,我的事件标题被剪切在第一行(溢出隐藏),因为这里引入了一个新的CSS样式:

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

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

有什么理由说事件被迫一线高吗?如果我不想要这个,是否可以覆盖这种风格,或者这会导致某些地方出现不可预测的行为?我在文档中找不到任何内容,也没有使用谷歌.

anu*_*anu 16

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

这是如何禁用单行标题

.fc-day-grid-event > .fc-content {
    white-space: normal;
}
Run Code Online (Sandbox Code Playgroud)

  • 这是一个老答案,但这仍然适用于v3.1.0 (2认同)