Bug 309157 All Day events cropped in Week View r=mvl

This commit is contained in:
jminta%gmail.com 2005-09-22 01:37:34 +00:00
Родитель 586fa3e1e9
Коммит 219c8dc0b4
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -417,6 +417,13 @@ WeekView.prototype.createEventBoxInternal = function (event)
debug("index is:" + index + "(" + startDate.weekday + " - " + dayIndex.getDay() + ")\n");
var ElementOfRef = document.getElementById("week-tree-day-" + gRefColumnIndex + "-item-" + startHour) ;
// All-day events won't find a good ElementOfRef normally,
if (!ElementOfRef.boxObject.width) {
var sHour = getIntPref(this.calendarWindow.calendarPreferences.calendarPref,
"event.defaultstarthour", 8);
ElementOfRef = document.getElementById("week-tree-day-" + gRefColumnIndex
+ "-item-" + sHour);
}
var hourHeight = ElementOfRef.boxObject.height;
var ElementOfRefEnd = document.getElementById("week-tree-day-" + gRefColumnIndex + "-item-" + endDate.hour) ;
var hourHeightEnd = ElementOfRefEnd.boxObject.height;