hackyish way of not scrolling in browser, couldn't find a good way to get height of browser's toolbar etc, just made an average number.
This commit is contained in:
parent
ef48687385
commit
6f778b5b40
3 changed files with 12 additions and 5 deletions
|
@ -241,8 +241,7 @@ $(document).ready(function() {
|
|||
defaultView: 'agendaDay',
|
||||
editable: false,
|
||||
allDaySlot: false,
|
||||
lazyFetching: false,
|
||||
|
||||
|
||||
events: getFullCalendarEvents,
|
||||
|
||||
//callbacks (from full-calendar-functions.js
|
||||
|
@ -257,5 +256,12 @@ $(document).ready(function() {
|
|||
|
||||
});
|
||||
|
||||
$(window).load(function(){
|
||||
|
||||
var mainHeight = this.screen.height - 275 - 140 - 50;
|
||||
|
||||
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue