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

esllou’s picture

Solved it...thought I'd post how for future users. This did it for me:

#edit-filter0{
height:90px;
}
merlinofchaos’s picture

You can also alter it by creating a module that implements hook_form_alter() on the filter form and stepping through form elements.

sun’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

baselkhateeb’s picture

Version: 5.x-1.6 » 6.x-2.1

Or modify the style.css adding
div.view-view_name_goes_here input[id=input_id_goes_here]{
height:90px;
}

Pretty easy huh.

merlinofchaos’s picture

Version: 6.x-2.1 » 5.x-1.6

Putting version back.