mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01:00
ensure a minimum height of each row (row height depend on the interval).
Fixes also bug: [ 1386910 ] unreadable event representation
This commit is contained in:
parent
5f64bb4962
commit
aa536186c1
@ -591,7 +591,12 @@ class uiviews extends uical
|
|||||||
$totalDisplayMinutes = $wd_end - $this->wd_start;
|
$totalDisplayMinutes = $wd_end - $this->wd_start;
|
||||||
$this->rowsToDisplay = ($totalDisplayMinutes/$granularity_m)+2+2*$this->extraRows;
|
$this->rowsToDisplay = ($totalDisplayMinutes/$granularity_m)+2+2*$this->extraRows;
|
||||||
$this->rowHeight = round(100/$this->rowsToDisplay,1);
|
$this->rowHeight = round(100/$this->rowsToDisplay,1);
|
||||||
|
|
||||||
|
// ensure a minimum height of each row
|
||||||
|
if ($height < ($this->rowsToDisplay+1) * 12)
|
||||||
|
{
|
||||||
|
$height = ($this->rowsToDisplay+1) * 12;
|
||||||
|
}
|
||||||
$html = $indent.'<div class="calTimeGrid" style="height: '.$height.'px;">'."\n";
|
$html = $indent.'<div class="calTimeGrid" style="height: '.$height.'px;">'."\n";
|
||||||
|
|
||||||
$html .= $indent."\t".'<div class="calGridHeader row_on" style="width: 47px; height: '.
|
$html .= $indent."\t".'<div class="calGridHeader row_on" style="width: 47px; height: '.
|
||||||
|
Loading…
Reference in New Issue
Block a user