forked from extern/egroupware
Attempt to fix spacing in Safari
This commit is contained in:
parent
6915d76f29
commit
607dfda6ac
@ -66,8 +66,7 @@ var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResizea
|
|||||||
.addClass("calendar_calDayCol")
|
.addClass("calendar_calDayCol")
|
||||||
.css('width',this.options.width);
|
.css('width',this.options.width);
|
||||||
this.header = $j(document.createElement('div'))
|
this.header = $j(document.createElement('div'))
|
||||||
.addClass("calendar_calDayColHeader")
|
.addClass("calendar_calDayColHeader");
|
||||||
.appendTo(this.div);
|
|
||||||
this.title = $j(document.createElement('div'))
|
this.title = $j(document.createElement('div'))
|
||||||
.appendTo(this.header);
|
.appendTo(this.header);
|
||||||
|
|
||||||
|
@ -606,17 +606,18 @@ var et2_calendar_timegrid = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResiz
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create / update day widgets with dates and data
|
// 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++)
|
for(var i = 0; i < this.day_list.length; i++)
|
||||||
{
|
{
|
||||||
day = this.day_widgets[i];
|
day = this.day_widgets[i];
|
||||||
|
|
||||||
// Position
|
// 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_date(this.day_list[i], this.value[this.day_list[i]] || false);
|
||||||
day.set_owner(this.options.owner);
|
day.set_owner(this.options.owner);
|
||||||
day.set_id(this.day_list[i]);
|
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
|
// Don't hold on to value any longer, use the data cache for best info
|
||||||
|
Loading…
Reference in New Issue
Block a user