Deal with event sizing issue that caused 0 length events depending on what was rendered first

This commit is contained in:
nathangray 2017-04-05 13:23:34 -06:00
parent 6f13a9caa9
commit 53916b71f6

View File

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