Search code examples
javascriptjqueryjquery-select2jquery-select2-4

Increase width of dropdown to make long values fully visible


I am using Select2. So far all good but I am getting the following behavior with a SELECT turned on a Select2.

enter image description here

By behavior I mean the SELECT doesn't increase to it's larger element so I am seeing them as the image above shows. I have read here and here but nothing is helpful at all there. Also I have found this but I don't now where that dropdownAutoWidth property is or if it's alive.

Any advice? Is this possible? How?


Solution

  • You can solve this by setting min-width to .select2-dropdown