CC-1811 schedule view/add show screens make calendar height less than one screen size to prevent outer browser scrollbar.
This commit is contained in:
parent
dc2b59a634
commit
24da57ae4f
|
@ -1,3 +1,7 @@
|
||||||
|
body {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
#schedule-add-show,
|
#schedule-add-show,
|
||||||
#fullcalendar_show_display {
|
#fullcalendar_show_display {
|
||||||
float: left;
|
float: left;
|
||||||
|
|
|
@ -128,4 +128,8 @@ $(document).ready(function() {
|
||||||
eventRender: eventRender
|
eventRender: eventRender
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var mainHeight = document.documentElement.clientHeight - 200 - 50;
|
||||||
|
|
||||||
|
$('#fullcalendar_show_display').fullCalendar('option', 'contentHeight', mainHeight);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -256,12 +256,9 @@ $(document).ready(function() {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).load(function(){
|
var mainHeight = document.documentElement.clientHeight - 200 - 50;
|
||||||
|
|
||||||
var mainHeight = this.innerHeight - 200 - 50;
|
|
||||||
|
|
||||||
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight);
|
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight);
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue