多余的行全日历

时间:2015-06-01 17:28:04

标签: fullcalendar

注意:此次提交中提供了多个营业时间:https://github.com/dtmonterrey/fullcalendar/commit/d9848d0ae7d7dae0f0340c62ce38b8acc0d03b62

我正在使用FullCalendar,在我设置之后我有一个多余的行:

scrollTime: "08:00:00",
minTime:    "08:00:00",
maxTime:    "19:00:00",

图片

Excess Rows

完整代码

$(document).ready(function () {

    $('#calendar').fullCalendar({
        defaultView: 'agendaWeek',
        scrollTime: "08:00:00",
        minTime: "08:00:00",
        maxTime: "19:00:00",
        weekNumbers: true,
        firstDay: 1,
        allDaySlot: false,
        header: {
            left: 'prev,next today',
            center: 'title',
            right: 'month,agendaWeek,agendaDay'
        },
        selectable: true,
        selectConstraint: 'businessHours',
        eventConstraint: 'businessHours',
        selectHelper: true,
        select: function (start, end) {
            var title = prompt('Event Title:');
            var eventData;
            if (title) {
                eventData = {
                    title: title,
                    start: start,
                    end: end
                };
                $('#calendar').fullCalendar('renderEvent', eventData, true); // stick? = true
            }
            $('#calendar').fullCalendar('unselect');
        },
        businessHours: [
            {
                start: '09:00',
                end: '17:00',
                dow: [1, 2, 3, 5, 6]
            },
            {
                start: '09:00',
                end: '19:00',
                dow: [4]
            }
        ]
    });

});

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

我使用FullCalendar v2.4.0时遇到了确切的问题。我认为最好的选择是将aspectRatio属性从1.35更改为1.5(或任何更大的浮点数)。