How to remove white space below the option in select element


#1

How to remove white space below the option if single item there in drop down/select option in desktop display mode? Here i attached the screen for reference. Thanksselect


#2

Hi @Jason_Chan :wave:

Good question :wink:
You can set/control the space in dropdown with the rows option, more information here: https://docs.mobiscroll.com/jquery/select#opt-rows.
Let me know if this helps or if something is unclear.


#3

Thanks for your reply, but can’t we set the row option value as auto as the select items are came dynamically so we don’t know exactly how many items came?