Skip to main content
nathang78560588
Inspiring
Mar 13, 2019 3:01 PM UTC
Answered

Can I specify the number of lines a dropdown/combo box displays when it is open?

I have a dropdown box that contains 12 options. When it is in its open state on the form, it on;y displays the first nine lines, and the last three are in an "overflow:scroll" kind of state, and unfortunately—and I don't know if this is platform- or system-specific—the  only way to scroll them is to physically click on the scroll bars at the side of the dropdown box, and drag them downwards. It's not possible to use a two-finger scroll gesture as I usually can.

It's a first-world problem, I realise, but it does interrupt the user interface flow, and I wonder if there is a javascript way of specifying more lines of text should be displayed before it needs to add scroll bars.

(I've checked the preferences and drawn a blank, but if there is one that I've missed, that would be a perfectly acceptable answer too!)

Many thanks for your time,

NathanG

This topic is closed to new replies. Start a new post to keep the conversation going.
Bernd Alheit
Bernd AlheitCorrect answer
Community Expert
Mar 13, 2019 3:14 PM UTC

You can't specify this with Javascript.

3 replies

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
Mar 13, 2019 3:14 PM UTC

You can't specify this with Javascript.

Translate
nathang78560588
Inspiring
Mar 13, 2019 3:23 PM UTC

Thanks for getting back to me. That's a real shame, as it would make my life just that little bit easier! Oh well...

Is there perhaps another way that it can be done, that I could explore, or is a maximum of nine lines hardwired into the system, and completely unchangeable?

Translate
Bernd Alheit
Community Expert
Community Expert
Mar 13, 2019 3:26 PM UTC

When you change the font size you will get more or less visible lines.

Translate