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

时间:2014-08-12 19:05:49

标签: 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;

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

2 个答案:

答案 0 :(得分:15)

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

这是禁用单行标题的方法

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

答案 1 :(得分:1)

在 v4 及更高版本中

.fc-event-main-frame {
    white-space: normal;
}

示例 enter image description here

相关问题