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:
naomiaro 2011-01-31 10:00:26 -05:00
parent dc2b59a634
commit 24da57ae4f
3 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,7 @@
body {
overflow: hidden;
}
#schedule-add-show,
#fullcalendar_show_display {
float: left;
@ -106,4 +110,4 @@ label.wrapp-label input[type="checkbox"] {
padding:8px;
color:#902d2d;
display:none;
}
}

View File

@ -128,4 +128,8 @@ $(document).ready(function() {
eventRender: eventRender
});
var mainHeight = document.documentElement.clientHeight - 200 - 50;
$('#fullcalendar_show_display').fullCalendar('option', 'contentHeight', mainHeight);
});

View File

@ -256,12 +256,9 @@ $(document).ready(function() {
});
$(window).load(function(){
var mainHeight = this.innerHeight - 200 - 50;
var mainHeight = document.documentElement.clientHeight - 200 - 50;
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight);
});
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight);
});