Jquery Full Calendar Remove Scroll Bar

D-W picture D-W · Sep 14, 2012 · Viewed 29.6k times · Source

I Have the jquery full calendar in use, but im trying to get rid of the scroll bar. Ive tried setting the height, does not work.

Anyone have a fix (that they have used!, no links- I've tried most of them)?

I'm using:

$('#calendar').fullCalendar({
        firstDay: 1,
        minTime:@Model.MinHour,
       maxTime:@Model.MaxHour})

Screen Shot

Page is big enough, just cant get the darn thing to go!

Answer

Adam Maloney picture Adam Maloney · Sep 21, 2015

I set height and contentHeight to the same value and it seems to have done the trick.

css:

#calendar {
   height:1000px;
}

js:

var calHeight = 1000;

$('#calendar').fullCalendar({
    height:calHeight,
    contentHeight:calHeight
});

Edit:

I found on refresh between views, caused it to show scroll when I don't want it to. Added this:

.fc-scroller {
   overflow-y: hidden !important;
}