CC-2974: Schedule Calendar does not auto-resize when resizing browser

window height.

- comment added
This commit is contained in:
james 2011-10-26 10:23:55 -04:00
parent d26e410799
commit 33fe78f309

View file

@ -440,6 +440,9 @@ $(window).resize(function(){
var widthPercent = parseInt(calendarWidth)+"%";
$("#schedule_calendar").css("width", widthPercent);
}
// 200 px for top dashboard and 50 for padding on main content
// this calculation was copied from schedule.js line 326
var mainHeight = document.documentElement.clientHeight - 200 - 50;
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight)
$("#schedule_calendar").fullCalendar('render');