diff --git a/calendar/inc/class.uiviews.inc.php b/calendar/inc/class.uiviews.inc.php index 6758e905c2..51669bde17 100644 --- a/calendar/inc/class.uiviews.inc.php +++ b/calendar/inc/class.uiviews.inc.php @@ -289,7 +289,7 @@ class uiviews extends uical elseif ($this->wd_end < 24*60 && $time > $this->wd_end+2*$this->granularity_m) { $pos = $this->time2pos($this->wd_end+2*$this->granularity_m) + - round(($time - ($this->wd_end+2*$this->granularity_m)) / $this->px_m / + @round(($time - ($this->wd_end+2*$this->granularity_m)) / $this->px_m / (24*60 - ($this->wd_end+2*$this->granularity_m))); } // time during the workday => 2. row on (= + granularity) @@ -705,8 +705,37 @@ class uiviews extends uical { $GLOBALS['phpgw_info']['flags']['java_script'] = ' '; @@ -742,6 +772,7 @@ function reload_inner_width() { { $width = 1000; // default, if the browser does not report it } +// print $width ; return $width - 250; // 180 for sidebox-menu, TODO: this need to come from the template } }