mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fixed IE problem with the improved calendar code in trunk
This commit is contained in:
parent
884fb63a94
commit
1961bf2170
@ -728,13 +728,22 @@ class uiviews extends uical
|
||||
|
||||
$dayCols_width = $width - $this->timeRow_width - 1;
|
||||
|
||||
// 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";
|
||||
($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 .= '<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
|
||||
|
||||
|
@ -92,9 +92,10 @@ 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;
|
||||
right: 0px;
|
||||
}
|
||||
/* 12h timeformat with am/pm
|
||||
*/
|
||||
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user