CC-2974: Schedule Calendar does not auto-resize when resizing browser
window height. - comment added
This commit is contained in:
parent
d26e410799
commit
33fe78f309
1 changed files with 3 additions and 0 deletions
|
@ -440,6 +440,9 @@ $(window).resize(function(){
|
||||||
var widthPercent = parseInt(calendarWidth)+"%";
|
var widthPercent = parseInt(calendarWidth)+"%";
|
||||||
$("#schedule_calendar").css("width", widthPercent);
|
$("#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;
|
var mainHeight = document.documentElement.clientHeight - 200 - 50;
|
||||||
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight)
|
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight)
|
||||||
$("#schedule_calendar").fullCalendar('render');
|
$("#schedule_calendar").fullCalendar('render');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue