Forum OpenACS Q&A: a little question...

Collapse
Posted by David Kuczek on
Is there a possibility to display a regular html <select> in its full lenght... Right now I get a scroll bar after 11 options.
Collapse
2: Re: a little question... (response to 1)
Posted by Dave Bauer on
David,

You should be able to specify the number of visible elements. Use the size="number" attribute on the select tag to specify how many you want displayed. From what I can see, it's more of a suggestion to the browser, but if it's not too long it will probably work.

Collapse
3: Re: a little question... (response to 1)
Posted by David Kuczek on
Dave,

doesn't size="number" define how many option elements are displayed at a time? The select would be 10 option elements high on your site. I would like to have it 1 element high (default: size=1) but want to define that whenever somebody hits on the select a list of x-options is displayed. At the moment only 11 options are displayed but I have 12 options defined. To reach the last you would have to scroll, which is not too nice...

Collapse
Posted by Jarkko Laine on
David,

I think that depends a lot on the browser, screen resolution and the platform the user has. I don't think there's a comprehensive solution for your problem, but I might as well be wrong.