mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
if we have more then 5 cf's to display --> limit header height to 5 lines plus vertical scrollbar
This commit is contained in:
parent
c8ad252566
commit
c4e24a1e58
@ -576,6 +576,17 @@ class nextmatch_widget
|
||||
unset($header);
|
||||
}
|
||||
}
|
||||
// do we have more then 5 cf's to display --> limit header height to 5 lines plus vertical scrollbar
|
||||
$num = !$allowed ? count($this->cfs) : count($allowed);
|
||||
if ($num > 5)
|
||||
{
|
||||
$vbox = $cell;
|
||||
$cell = etemplate::empty_cell('box','',array(
|
||||
'size' => '0,,0,0',
|
||||
'span' => ',cf_header_height_limit',
|
||||
));
|
||||
etemplate::add_child($cell,$vbox);
|
||||
}
|
||||
return false; // no extra label
|
||||
}
|
||||
|
||||
|
@ -144,3 +144,12 @@
|
||||
border-bottom: 4px solid red;
|
||||
border-right: 4px solid red;
|
||||
}
|
||||
|
||||
/**
|
||||
* class for big (more then 5 lines) custom field nextmatch header
|
||||
*/
|
||||
.cf_header_height_limit {
|
||||
max-height: 6.75em;
|
||||
overflow: auto;
|
||||
padding-right: 15px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user