mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
* 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:
parent
ec7cc493ef
commit
a045b4cc5f
@ -1412,9 +1412,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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user