diff --git a/calendar/js/et2_widget_daycol.js b/calendar/js/et2_widget_daycol.js index 69f8e9b3b6..7b1f4b44e9 100644 --- a/calendar/js/et2_widget_daycol.js +++ b/calendar/js/et2_widget_daycol.js @@ -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); diff --git a/calendar/js/et2_widget_timegrid.js b/calendar/js/et2_widget_timegrid.js index 5706aa959b..e018e0e33d 100644 --- a/calendar/js/et2_widget_timegrid.js +++ b/calendar/js/et2_widget_timegrid.js @@ -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