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

window height.

- fixed
This commit is contained in:
James 2011-10-23 07:08:03 -04:00
parent f2bf92297a
commit ca757d0fc0

View file

@ -439,8 +439,11 @@ $(window).resize(function(){
var calendarWidth = 100-(($("#schedule-add-show").width() + (16 * 4))/windowWidth*100);
var widthPercent = parseInt(calendarWidth)+"%";
$("#schedule_calendar").css("width", widthPercent);
$("#schedule_calendar").fullCalendar('render');
}
var mainHeight = document.documentElement.clientHeight - 200 - 50;
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight)
$("#schedule_calendar").fullCalendar('render');
});
$(window).load(function() {