ui-calendar
ui-calendar copied to clipboard
Event Resize not working in month view
<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
}
};
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:
