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

Event Resize not working in month view #449

Open yasir095 opened 7 years ago

yasir095 commented 7 years ago

<div ui-calendar="calCtrl.uiConfig.calendar" ng-model="calCtrl.eventSources" calendar="myCalendar1"></div>

vm.uiConfig = {
      calendar:{
        height: 450,
        editable: true,
        startEditable: true,
        durationEditable: true,
        eventDurationEditable: true,
        header:{
          left: 'title',
          center: '',
          right: 'today prev,next'
        },
        eventClick: vm.onClickEvent,
        eventDrop: vm.onDropEvent,
        eventResize: vm.onResizeEvent,
        eventRender: vm.eventRender
      }
    };
bagadim commented 6 years ago

Not sure if this is connected, but I came to the same problem when trying to dynamically resize calendar on month view render. When I try to change it on month view render event -> the calendar is not switching views at all. And if I comment selected line -> it works smooth and changes size of the calendar on the view changes: image