Unknown.Vagrant
Unknown.Vagrant

Reputation: 252

Disable word wrap when open select2 drop down menu

How i can disable word wrap when open select2 drop down menu?

select2

in next picture when i use standard GUI, words not moved to a new line and line width is increased

standart windows GUI dropdown menu

Upvotes: 4

Views: 3089

Answers (1)

Abhishekh Gupta
Abhishekh Gupta

Reputation: 6236

You can set dropdownAutoWidth as true:

$("selector").select2({
    dropdownAutoWidth : true
});

Hope this helps.

Upvotes: 11

Related Questions