if we have more then 5 cf's to display --> limit header height to 5 lines plus vertical scrollbar

This commit is contained in:
Ralf Becker 2009-06-30 18:21:15 +00:00
parent c8ad252566
commit c4e24a1e58
2 changed files with 20 additions and 0 deletions

View File

@ -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
}

View File

@ -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;
}