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
|
@ -1,4 +1,4 @@
|
|||
<div id='schedule_calendar'></div>
|
||||
<div id='schedule_calendar' class="ui-widget-content block-shadow omega-block padded fc"></div>
|
||||
|
||||
<ul id="schedule_event_default_menu" class="contextMenu">
|
||||
<?php echo $this->partialLoop('library/contextMenuPartial.phtml', $this->eventDefaultMenu) ?>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
|
||||
body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#schedule_calendar {
|
||||
width:98%
|
||||
|
|
|
@ -241,7 +241,6 @@ $(document).ready(function() {
|
|||
defaultView: 'agendaDay',
|
||||
editable: false,
|
||||
allDaySlot: false,
|
||||
lazyFetching: false,
|
||||
|
||||
events: getFullCalendarEvents,
|
||||
|
||||
|
@ -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