angular-ui / ui-calendar

A complete AngularJS directive for the Arshaw FullCalendar.
http://angular-ui.github.io/ui-calendar/
MIT License
1.49k stars 729 forks source link

windowResize not working with uiCalendarConfig #399

Closed flick36 closed 8 years ago

flick36 commented 8 years ago

In jQuery i can do something like

$('#calendar').fullCalendar({
    'windowResize': BackendCalendar.calendarWindowResize,
}
calendarWindowResize: function(view) {
    $('#calendar').fullCalendar('option', 'height', getCalendarHeight());
}

where calendar height it's another function to get thw window.innerHeight so it can dinamycally change it size but with ui-calendar i can't cause to use the uiCalendarConfig the calendar must initialize first but it's not initialize the first time i'm triying to calculate so i get an uiCalendarConfig is not defined error in cosole