mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +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;
|
$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
|
// Lars Kneschke 2005-08-28
|
||||||
// why do we use a div in a div which has the same height and width???
|
// 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
|
// To make IE6 happy!!! Without the second div you can't use
|
||||||
// style="left: 50px; right: 0px;"
|
// style="left: 50px; right: 0px;"
|
||||||
$html .= $indent."\t".'<div id="calDayCols" class="calDayCols'.
|
//$html .= '<div style="width=100%; height: 100%;">'."\n";
|
||||||
($this->use_time_grid ? ($this->bo->common_prefs['timeformat'] == 12 ? '12h' : '') : 'NoTime').
|
|
||||||
'"><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);
|
$dayCol_width = $dayCols_width / count($daysEvents);
|
||||||
$n = 0;
|
$n = 0;
|
||||||
foreach($daysEvents as $day => $events)
|
foreach($daysEvents as $day => $events)
|
||||||
@ -751,7 +760,9 @@ class uiviews extends uical
|
|||||||
$dayColWidth,$indent."\t\t",$short_title,++$on_off & 1,$col_owner);
|
$dayColWidth,$indent."\t\t",$short_title,++$on_off & 1,$col_owner);
|
||||||
++$n;
|
++$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
|
$html .= $indent."</div>\n"; // calTimeGrid
|
||||||
|
|
||||||
|
@ -92,7 +92,8 @@ e.g. the div with class calTimeGrid is generated by the timeGridWidget method of
|
|||||||
.calDayCols,.calDayCols12h,.calDayColsNoGrid{
|
.calDayCols,.calDayCols12h,.calDayColsNoGrid{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
bottom: 0px;
|
/* bottom: 0px; does NOT work in IE, IE needs height: 100%! */
|
||||||
|
height: 100%;
|
||||||
left: 45px;
|
left: 45px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
}
|
}
|
||||||
@ -175,7 +176,8 @@ e.g. the div with class calTimeGrid is generated by the timeGridWidget method of
|
|||||||
.calEventCol{
|
.calEventCol{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
bottom: 0px;
|
/* bottom: 0px; does NOT work in IE, IE needs height: 100%! */
|
||||||
|
height: 100%;
|
||||||
/* set via inline style on runtime:
|
/* set via inline style on runtime:
|
||||||
* left:
|
* left:
|
||||||
* width:
|
* width:
|
||||||
|
Loading…
Reference in New Issue
Block a user