From af88d35f63701bc219e87e39a0676752a35fa0f8 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 5 Apr 2017 13:23:34 -0600 Subject: [PATCH] Deal with event sizing issue that caused 0 length events depending on what was rendered first --- calendar/js/et2_widget_planner_row.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/calendar/js/et2_widget_planner_row.js b/calendar/js/et2_widget_planner_row.js index 752f79dc20..75223a8c6b 100644 --- a/calendar/js/et2_widget_planner_row.js +++ b/calendar/js/et2_widget_planner_row.js @@ -518,6 +518,12 @@ var et2_calendar_planner_row = (function(){ "use strict"; return et2_valueWidget var rows = this._spread_events(); var height = rows.length * this._row_height; var row_width = this.rows.width(); + if(row_width == 0) + { + // Not rendered yet or something + row_width = this.getParent().gridHeader.width() - this.title.width() + } + row_width -= 15; for(var c = 0; c < rows.length; c++) {