lcdsantos / jQuery-Selectric

jQuery plugin for easy manipulation and customization of HTML selects
http://selectric.js.org/
MIT License
727 stars 157 forks source link

how do I set selectric label width according to the longest option ? #205

Open tomeraz opened 7 years ago

tomeraz commented 7 years ago

selectric width is set according to the selected label. There are options that are wider than the selected one. Is there a way to set the whole selectric width according to the widest item?

9e81b309-bf3f-453e-90b2-91569f13045a

gearsdigital commented 6 years ago

There is an option to inherit the orignal width.

$('select').selectric({
    inheritOriginalWidth: true,
});