I think the exposed filter height, 8, is too high and plays havoc with my layout. I would prefer 3 or 4.
I found the part of views.module where this is set, line 1380:
if ($item['#multiple'] && is_array($item['#options'])) {
$item['#size'] = min(count($item['#options']), 8);
}
changing that 8 to 4 works perfectly. Is there a non-hacky way of doing it? CSS? I would want it for all exposed filters.
Comments
Comment #1
esllou commentedSolved it...thought I'd post how for future users. This did it for me:
Comment #2
merlinofchaos commentedYou can also alter it by creating a module that implements hook_form_alter() on the filter form and stepping through form elements.
Comment #3
sunComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
baselkhateeb commentedOr modify the style.css adding
div.view-view_name_goes_here input[id=input_id_goes_here]{
height:90px;
}
Pretty easy huh.
Comment #6
merlinofchaos commentedPutting version back.