mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-21 12:59:29 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user