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
3 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
body {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
#schedule-add-show,
|
#schedule-add-show,
|
||||||
#fullcalendar_show_display {
|
#fullcalendar_show_display {
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -106,4 +110,4 @@ label.wrapp-label input[type="checkbox"] {
|
||||||
padding:8px;
|
padding:8px;
|
||||||
color:#902d2d;
|
color:#902d2d;
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue