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:50 +00:00
parent a51f1683ce
commit 4b14a19d3e
2 changed files with 20 additions and 0 deletions

View File

@ -552,6 +552,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

@ -141,3 +141,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;
}