the height of the </code> is <code>height:256px; but for filters with a few options the box is very big
take a look at screenshot
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 729224_height_is_big_7.patch | 3.63 KB | zserno |
| #7 | Edit view sexy_view | localhost.jpg | 31.66 KB | zserno |
| #1 | 729224_height_is_too_big.patch | 472 bytes | zserno |
| sexy_exposed_big_filter_box.gif | 4.5 KB | giorgosk |
Comments
Comment #1
zserno commentedTrue.
Ideally the height should be computed based on the number of elements. As a workaround I attach a patch that removes this hard-coded height value. Please check if it's better for you.
Comment #2
zserno commentedComment #3
giorgoskthe height seems better but for filters with many options the box will become to big
you can probably have a condition where when the options are more than say 10 you include the 256px height and it gives scrollbars
otherwise you don't give a height to the container and it gets an height auto calculated
an alternative would be within the views configuration to allow the user to specify height or leave empty (auto height)
Comment #4
giorgoskAnother option would be to preserve the id from the original fields so someone could at least use CSS and change the heights of individual dropdownlists that are big
Comment #5
giorgoskhere is a javascript based solution for sexyexposed.js
when there are less than 8 options then no height is given
more than 8 height is limited and scrollars appear
it would be nice to make the number of options configurable
Comment #6
zserno commented@GiorgosK: Thanks for your ideas. We're working on a general solution where users will be able to override height optionally.
Comment #7
zserno commentedAttached patch provides a textfield to enter number of items that should be visible in the drop-down list.
See attached screenshot.
Comment #8
zserno commentedCommitted to HEAD: http://drupal.org/cvs?commit=411348.
Also added a -dev release. Will be up once the packaging script runs again (in 12 hours).