The drop-down list is displayed in the browser as html select ... html select does not support the requirements you specify ...
You will need to write a custom control to set a limit on the maximum number of lines.
you need to write a custom control for this or use add-ons on the client side ...
The following post also answers your question.
source share