{"action":"closed","issue":{"url":"https://api.github.com/repos/arshaw/fullcalendar/issues/265","labels_url":"https://api.github.com/repos/arshaw/fullcalendar/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/arshaw/fullcalendar/issues/265/comments","events_url":"https://api.github.com/repos/arshaw/fullcalendar/issues/265/events","html_url":"https://github.com/arshaw/fullcalendar/issues/265","id":100511722,"number":265,"title":"Fit calendar to container","user":{"login":"M0nter0","id":7803590,"avatar_url":"https://avatars.githubusercontent.com/u/7803590?v=3","gravatar_id":"","url":"https://api.github.com/users/M0nter0","html_url":"https://github.com/M0nter0","followers_url":"https://api.github.com/users/M0nter0/followers","following_url":"https://api.github.com/users/M0nter0/following{/other_user}","gists_url":"https://api.github.com/users/M0nter0/gists{/gist_id}","starred_url":"https://api.github.com/users/M0nter0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M0nter0/subscriptions","organizations_url":"https://api.github.com/users/M0nter0/orgs","repos_url":"https://api.github.com/users/M0nter0/repos","events_url":"https://api.github.com/users/M0nter0/events{/privacy}","received_events_url":"https://api.github.com/users/M0nter0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-12T10:15:50Z","updated_at":"2015-08-12T13:34:58Z","closed_at":"2015-08-12T13:34:58Z","body":"This comes from [Fit calendar to container stackoverflow question]\r\n(http://stackoverflow.com/questions/31962155/fit-calendar-to-container)\r\n<hr>\r\nI'm trying to make the fullcalendar fitting on the container without success. I've been modifying `contentHeight`, `height` and `aspectRatio` without results.\r\n\r\n`contentHeight:'auto'` is working fine if container is not bigger than the content, displaying scrollbars.\r\n\r\nBest calendar configuration I got looks like:\r\n\r\n<!-- language-all: lang-js -->\r\n\r\n    $('#calendar').fullCalendar({\r\n       header: {\r\n                left: '',\r\n                center: '',\r\n                right: ''\r\n            },\r\n        defaultView:'agendaWeek',\r\n        contentHeight:'auto',       //auto\r\n        slotDuration: '00:60:00',        \r\n    });\r\n\r\nIf I get dynamically the size and I set it:\r\n\r\n    $('#calendar').fullCalendar({\r\n           header: {\r\n                    left: '',\r\n                    center: '',\r\n                    right: ''\r\n                },\r\n            defaultView:'agendaWeek',\r\n            contentHeight:766,     //specific height instead of auto\r\n            slotDuration: '00:60:00',        \r\n        });\r\n\r\nThe 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:\r\n\r\n[![Last row with fixed contentHeight][1]][1]\r\n\r\nIs it possible to 'maximize' the calendar to fit the container?\r\n\r\nI did a [plnkr where you can reproduce/fork it](http://plnkr.co/edit/TAJm5n?p=preview).\r\n\r\n*Note: I can't resize the container and the container height is dynamic.*\r\n  [1]: http://i.stack.imgur.com/1j8QY.png"}}