dirty hack, to get the IE to use onclick in a partly empty div and not "click throught" it to the underlying div

This commit is contained in:
Ralf Becker 2005-11-28 16:58:05 +00:00
parent 46adb5d50b
commit 88df544e72
2 changed files with 3 additions and 1 deletions

View File

@ -937,6 +937,8 @@ class uiviews extends uical
'/calendar/inc/gradient.php?color1='.urlencode($bodybgcolor1).'&color2='.urlencode($bodybgcolor2).
'&width='.$width.') repeat-y '.$bodybgcolor2,
'Small' => $width > $small_trigger_width ? '' : 'Small', // to use in css class-names
// otherwise a click in empty parts of the event, will "click through" and create a new event
'ienonsens' => $this->html->user_agent == 'msie' ? '<div style="font-size: 250pt; width: 100%; overflow: hidden">'.str_repeat('&nbsp;',4).'</div>' : '',
));
foreach(array(
'upper_left'=>array('width'=>-$corner_radius,'height'=>$header_height,'border'=>0,'bgcolor'=>$headerbgcolor),

View File

@ -8,7 +8,7 @@
<tr valign="top" style="height: 100%;">
<td class="calEventBody{Small}" style="background: {bodybackground}; border-bottom: {border}px solid {bordercolor}; border-left: {border}px solid {bordercolor}; border-right: {border}px solid {bordercolor};">
<p style="margin: 0px;">{body_icons}<br>
<span class="calEventTitle">{title}</span></p>
<span class="calEventTitle">{title}</span></p>{ienonsens}
</td>
</tr>
</table>