src/render.js
function(currentView) {

    currentView = currentView || calendarTarget.fullCalendar('getView').name

    var view = getConfig().fullcalendar.defaultView
    var height = 385;

    if (rootTarget.width() < 480) {
      rootTarget.addClass('is-small');
      if (getConfig().ui.avatar) height -= 15;
      if (currentView === 'agendaWeek' || currentView === 'basicDay') {
        view = 'basicDay';
      }
    } else {
      rootTarget.removeClass('is-small');
    }

    $.each(getConfig().customer_fields, function(key, field) {
      if (field.format === 'textarea') height += 98;
      else if (field.format === 'checkbox') height += 51;
      else height += 66;
    })

    return {
      height: height,
      view: view
    };

  }
function(currentView) {

    currentView = currentView || calendarTarget.fullCalendar('getView').name

    var view = getConfig().fullcalendar.defaultView
    var height = 385;

    if (rootTarget.width() < 480) {
      rootTarget.addClass('is-small');
      if (getConfig().ui.avatar) height -= 15;
      if (currentView === 'agendaWeek' || currentView === 'basicDay') {
        view = 'basicDay';
      }
    } else {
      rootTarget.removeClass('is-small');
    }

    $.each(getConfig().customer_fields, function(key, field) {
      if (field.format === 'textarea') height += 98;
      else if (field.format === 'checkbox') height += 51;
      else height += 66;
    })

    return {
      height: height,
      view: view
    };

  }
function ( currentView ) { currentView = currentView || calendarTarget . fullCalendar ( 'getView' ) . name var view = getConfig ( ) . fullcalendar . defaultView var height = 385 ; if ( rootTarget . width ( ) < 480 ) { rootTarget . addClass ( 'is-small' ) ; if ( getConfig ( ) . ui . avatar ) height -= 15 ; if ( currentView === 'agendaWeek' || currentView === 'basicDay' ) { view = 'basicDay' ; } } else { rootTarget . removeClass ( 'is-small' ) ; } $ . each ( getConfig ( ) . customer_fields , function ( key , field ) { if ( field . format === 'textarea' ) height += 98 ; else if ( field . format === 'checkbox' ) height += 51 ; else height += 66 ; } ) return { height : height , view : view } ; }
Fires when window is resized and calendar must adhere
Fires when window is resized and calendar must adhere