Q:

jQuery FullCalendar: Disable scrolling in Agenda View?

How can I disable scrolling in the Agenda View (week, day mode) using the FullCalendar jQuery plug-in? In month mode everything is fine, but when I change to Week/Day mode there is a scrollbar next to my mainpage scrollbar.

A:

This was what I did in my case.
The goal is to dynamically change the height, so I used the viewDisplay event in that way:
$('#calendar').fullCalendar({
    viewDisplay: function (view) {
        var h;
        if (view.name == "month") {
            h = NaN;
        }
        else {
            h = 2500;  // high enough to avoid scrollbars
        }

        $('#calendar').fullCalendar('option', 'contentHeight', h);
    }
});

A:

Starting from FullCalendar 2.1.0-beta1, you can set { height: 'auto' } option to disable scrollbars in views.
Although changelog entry for this new functionality can be read as "To turn scrollbars off in month view", it actually works for all views.

In month view, when the calendar's height overflows because of too many events, vertical scrollbars will appear. To turn this behavior off, set the height option to 'auto'. -- from v2.1.0-beta1 changelog

A:

just use: 
$('#calendar').fullCalendar({
    height: "auto"
});

