Adam Shaw 8 years ago
parent
commit
9a90fb96a2
2 changed files with 7 additions and 0 deletions
  1. 2 0
      src/View.js
  2. 5 0
      src/agenda/AgendaView.js

+ 2 - 0
src/View.js

@@ -334,6 +334,8 @@ var View = FC.View = InteractiveDateComponent.extend({
 
 
 	triggerBeforeEventsDestroyed: function() {
+		var _this = this;
+
 		if (this.hasPublicHandlers('eventDestroy')) {
 			this.getEventSegs().forEach(function(seg) {
 				var legacy;

+ 5 - 0
src/agenda/AgendaView.js

@@ -296,6 +296,11 @@ var AgendaView = FC.AgendaView = View.extend({
 		if (this.dayGrid) {
 			this.dayGrid.executeEventRender(dayEventsPayload);
 		}
+
+		// hack! not DRY
+		this.whenSizeUpdated(
+			this.triggerAfterEventsRendered.bind(this)
+		);
 	},