Hello community,
I have a dropdown that can have text of different sizes.
I want the dropdown combo width to automatically expand depending on the size of the content.
Is that possible?
Thanks.
Hi Salvador,
I developed an example application and you can do it using JavaScript.
Feel free to customize the javascript and css I had to add on the page so that the down arrow icon also moves as per the content (I believe this part should be improved) as I used a non-best practice (using !important to override the default width defined for the container)
Result:
I hope this solution is what you are looking for and will help you move forward with the development.
Regards,
Pedro Costa
Now with some improvements :)
https://pedrocosta-sys.outsystemscloud.com/AutoResizeSelectPureJS/