* Calendar: alternative overlapping columns resulting in equally wide visible parts for unlimited number of columns

- for equally sized columns, the first one (used for whole day events or non-overlapping events) is fairly small (1/Nth of total width)
- still open again is problem of events in columns > 1 are not clickable (unless we set a z-index, which has other problems)
This commit is contained in:
Ralf Becker 2011-02-11 16:51:12 +00:00
parent 35e8ab5464
commit cf8fcd0d20

View File

@ -1363,9 +1363,20 @@ function open_edit(series)
// equal sized columns
$width = 95.0 / count($eventCols);
$left = 2.5 + $n * $width;
// alternative overlapping columns
if (count($eventCols) == 1)
{
$width = 95;
$left = 2.5;
}
else
{
$width = !$n ? 80 : 50;
$left = $n * (100.0 / count($eventCols));
}
if ($left + $width > 100.0) $width = 100.0 - $left;
$html .= $this->eventColWidget($eventCol,$left,$width,$indent."\t",
$owner ? $owner : $this->user);
$owner ? $owner : $this->user);//,20+10*$n);
}
$html .= $indent."</div>\n"; // calDayCol