Fix for IE in the Calendar module

Monotone-Parent: eeb0705e6da33070adbdcd844a5c1eef16561cac
Monotone-Revision: 9b15232c558892eb4787b921845df76e7ed25b71

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-06-03T21:06:06
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-06-03 21:06:06 +00:00
parent 7110f4ad4f
commit 5f6fb65c02
2 changed files with 19 additions and 4 deletions

View File

@@ -965,6 +965,7 @@ function refreshCalendarEventsCallback(http) {
_drawCalendarAllDayEvents(eventsBlocks[1], eventsBlocks[0]);
_drawCalendarEvents(eventsBlocks[2], eventsBlocks[0]);
}
onWindowResize(null);
}
scrollDayView(http.callbackData["scrollEvent"]);
}
@@ -1991,6 +1992,16 @@ function onWindowResize(event) {
handle = $("rightDragHandle");
if (handle)
handle.adjust();
if (Prototype.Browser.IE) {
var days = $$("DIV#daysView DIV.days");
var labels = $$("DIV#calendarHeader DIV.days");
if (days.length && labels.length) {
var day = days[0];
var label = labels[0];
day.setStyle({ width: (label.getWidth()-1) + "px" });
}
}
}
function initCalendars() {