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++) {