From a560c8d9c401ecb600405e15c97a498af1462535 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 7 Mar 2006 08:42:06 +0000 Subject: [PATCH] fix for the wider 12h timeformat in the day-, week- and month-view --- calendar/inc/class.uiviews.inc.php | 5 +++-- calendar/templates/default/app.css | 11 ++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/calendar/inc/class.uiviews.inc.php b/calendar/inc/class.uiviews.inc.php index c735caebdb..bcd7e60240 100644 --- a/calendar/inc/class.uiviews.inc.php +++ b/calendar/inc/class.uiviews.inc.php @@ -608,7 +608,7 @@ class uiviews extends uical } $html = $indent.'
'."\n"; - $html .= $indent."\t".'
'.$title."
\n"; $off = false; // Off-row means a different bgcolor @@ -641,7 +641,8 @@ class uiviews extends uical // why do we use a div in a div which has the same height and width??? // To make IE6 happy!!! Whithout the second div you can't use // style="left: 50px; right: 0px;" - $html .= $indent."\t".'
'."\n"; + $html .= $indent."\t".'
'."\n"; $dayCol_width = $dayCols_width / count($daysEvents); $n = 0; foreach($daysEvents as $day => $events) diff --git a/calendar/templates/default/app.css b/calendar/templates/default/app.css index 34cd37e3b3..13877b0a35 100644 --- a/calendar/templates/default/app.css +++ b/calendar/templates/default/app.css @@ -64,16 +64,17 @@ /* contains (multiple) dayCol's */ -.calDayCols{ +.calDayCols,.calDayCols12h{ position: absolute; top: 0px; height: 100%; - left: 50px; + left: 45px; right: 0px; -/* set via inline style on runtime: - * left: width(calTimeRowTime) - * width: 100% - width(calTimeRowTime) +} +/* 12h timeformat with am/pm */ +.calDayCols12h{ + left: 65px; } /* contains (multiple) eventCol's