fixed IE problem with the improved calendar code in trunk

This commit is contained in:
Ralf Becker 2006-06-19 20:46:25 +00:00
parent 884fb63a94
commit 1961bf2170
2 changed files with 23 additions and 10 deletions

View File

@ -728,13 +728,22 @@ class uiviews extends uical
$dayCols_width = $width - $this->timeRow_width - 1;
$html .= $indent."\t".'<div id="calDayCols" class="calDayCols'.
($this->use_time_grid ? ($this->bo->common_prefs['timeformat'] == 12 ? '12h' : '') : 'NoTime').'">'."\n";
if ($this->html->user_agent == 'msie') // necessary IE hack - stupid thing ...
{
// Lars Kneschke 2005-08-28
// why do we use a div in a div which has the same height and width???
// To make IE6 happy!!! Without the second div you can't use
// style="left: 50px; right: 0px;"
$html .= $indent."\t".'<div id="calDayCols" class="calDayCols'.
($this->use_time_grid ? ($this->bo->common_prefs['timeformat'] == 12 ? '12h' : '') : 'NoTime').
'"><div style="width: 100%; height: 100%;">'."\n";
//$html .= '<div style="width=100%; height: 100%;">'."\n";
// Ralf Becker 2006-06-19
// Lars original typo "width=100%; height: 100%;" is important ;-)
// means you width: 100% does NOT work, you need no width!
$html .= '<div style="height: 100%;">'."\n";
}
$dayCol_width = $dayCols_width / count($daysEvents);
$n = 0;
foreach($daysEvents as $day => $events)
@ -751,7 +760,9 @@ class uiviews extends uical
$dayColWidth,$indent."\t\t",$short_title,++$on_off & 1,$col_owner);
++$n;
}
$html .= $indent."\t</div></div>\n"; // calDayCols
if ($this->html->user_agent == 'msie') $html .= "</div>\n";
$html .= $indent."\t</div>\n"; // calDayCols
}
$html .= $indent."</div>\n"; // calTimeGrid

View File

@ -92,7 +92,8 @@ e.g. the div with class calTimeGrid is generated by the timeGridWidget method of
.calDayCols,.calDayCols12h,.calDayColsNoGrid{
position: absolute;
top: 0px;
bottom: 0px;
/* bottom: 0px; does NOT work in IE, IE needs height: 100%! */
height: 100%;
left: 45px;
right: 0px;
}
@ -175,7 +176,8 @@ e.g. the div with class calTimeGrid is generated by the timeGridWidget method of
.calEventCol{
position: absolute;
top: 0px;
bottom: 0px;
/* bottom: 0px; does NOT work in IE, IE needs height: 100%! */
height: 100%;
/* set via inline style on runtime:
* left:
* width: