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:
naomiaro 2011-01-31 01:54:58 -05:00
parent ef48687385
commit 6f778b5b40
3 changed files with 12 additions and 5 deletions

View file

@ -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);
});
});