Attempt to fix spacing in Safari

This commit is contained in:
Nathan Gray 2015-10-19 19:16:11 +00:00
parent 6915d76f29
commit 607dfda6ac
2 changed files with 4 additions and 4 deletions

View File

@ -66,8 +66,7 @@ var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResizea
.addClass("calendar_calDayCol")
.css('width',this.options.width);
this.header = $j(document.createElement('div'))
.addClass("calendar_calDayColHeader")
.appendTo(this.div);
.addClass("calendar_calDayColHeader");
this.title = $j(document.createElement('div'))
.appendTo(this.header);

View File

@ -606,17 +606,18 @@ var et2_calendar_timegrid = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResiz
}
// Create / update day widgets with dates and data
var day_width = (100/this.day_list.length).toFixed(2);
for(var i = 0; i < this.day_list.length; i++)
{
day = this.day_widgets[i];
// Position
day.set_left(((100/this.day_list.length).toFixed(2) * i) + '%');
day.set_left((day_width * i) + '%');
day.set_date(this.day_list[i], this.value[this.day_list[i]] || false);
day.set_owner(this.options.owner);
day.set_id(this.day_list[i]);
day.set_width((100/this.day_list.length).toFixed(2) + '%');
day.set_width(day_width + '%');
}
// Don't hold on to value any longer, use the data cache for best info