revsystems / jQuery-SelectBox

A modern replacement for the traditional select element. Increases flexibility and stylability.
http://plugins.jquery.com/project/jquery-sb
Other
72 stars 16 forks source link

Fixed width styling is unclear #7

Closed revsystems closed 13 years ago

revsystems commented 13 years ago

Need to make it clear and easy how to make the selectbox and dropdown a fixed width.

tvdeyen commented 13 years ago

Yeah, this is not clear :)

I set fixedWidth to true and the ul.items does not have the width of the widest value. Or am I missing something? Setting it to false does not change anything.

revsystems commented 13 years ago

Currently the way to set the fixed width is use the fixedWidth: false option, then specify a width on .selectbox .display in the css. Definitely need a better way to do it... shouldn't be too long.

revsystems commented 13 years ago

I added a fixed width example to the demo page, and info on it in the Readme. I think the current solution allows the best balance of dynamic sizing and stylability.