Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery Full Calendar Remove Scroll Bar

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!

like image 461
D-W Avatar asked Sep 14 '12 17:09

D-W


3 Answers

Try this https://fullcalendar.io/docs/contentHeight contentHeight:"auto", is used for remove scroll bar

<script>

        jQuery('#calendar').fullCalendar({
         header: {
            left: 'prev',
            center: 'title',
            right: 'next'
        },
        defaultView: 'month',
        showNonCurrentDates:false,
        fixedWeekCount:false,
        contentHeight:"auto",
        handleWindowResize:true,
        themeSystem:'bootstrap3',

    });
</script>
like image 145
Naveen Gaur Avatar answered Nov 06 '22 13:11

Naveen Gaur


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;
}
like image 24
Adam Maloney Avatar answered Nov 06 '22 14:11

Adam Maloney


As of version 2.1.0 height option can be set to 'auto'

https://fullcalendar.io/docs/display/height/

This will remove the vertical scrollbar

like image 6
J.T. Houtenbos Avatar answered Nov 06 '22 13:11

J.T. Houtenbos