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
maint-2.0.2
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

@ -444,7 +444,9 @@ DIV#daysView
border-left: 1px solid #ccc;
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc;
overflow: auto; }
overflow: auto;
overflow-x: hidden;
right: 0px;}
DIV#calendarHeader
{ top: 3.5em;
@ -461,8 +463,8 @@ DIV#calendarHeader DIV.days
border-top: 1px solid #ccc;
left: 5em;
margin-left: 2px;
margin-right: 16px;
right: 0px;
margin-right: 16px; /* scrollbar width */
right: 1px;
overflow: hidden; }
DIV#calendarHeader DIV.dayLabels
@ -524,7 +526,9 @@ DIV#daysView DIV.days
height: 96em;
top: 0px;
left: 5em;
right: 2px; }
right: 2px;
/* width is specified dynamically through JavaScript */
}
DIV.multicolumnDayView DIV.lastDayUser
{ border-right: 1px solid #ccc; }

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() {