mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +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);
|
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
|
return false; // no extra label
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,3 +144,12 @@
|
|||||||
border-bottom: 4px solid red;
|
border-bottom: 4px solid red;
|
||||||
border-right: 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