I'm trying to make the fullcalendar fitting on the container without success. I've been modifying contentHeight
, height
and aspectRatio
without results.
contentHeight:'auto'
is working fine if container is not bigger than the content, displaying scrollbars.
Best calendar configuration I got looks like:
$('#calendar').fullCalendar({
header: {
left: '',
center: '',
right: ''
},
defaultView:'agendaWeek',
contentHeight:'auto', //auto
slotDuration: '00:60:00',
});
If I get dynamically the size and I set it:
$('#calendar').fullCalendar({
header: {
left: '',
center: '',
right: ''
},
defaultView:'agendaWeek',
contentHeight:766, //specific height instead of auto
slotDuration: '00:60:00',
});
The calendar expands, but only the last row, displaying an ugly last row like instead of increasing each row to fit the content. It looks like the following:
Is it possible to 'maximize' the calendar to fit the container?
I did a plnkr where you can reproduce/fork it.
Note: I can't resize the container and the container height is dynamic.
I'm working with 2.3.2 version, but it's the same with all other versions I tested.