Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

suggestion: standard width for <select> field #1518

Closed
frequent opened this issue Apr 27, 2011 · 2 comments
Closed

suggestion: standard width for <select> field #1518

frequent opened this issue Apr 27, 2011 · 2 comments

Comments

@frequent
Copy link
Contributor

The select field width adapts depending on the item the user selects.

Would it make sense to set automatically set the width to the largest option with text-overflow = ellipsis at a certain max-width? Makes layouting with select fields much easier.

So as:

select
option 1 = 123
option 2 = "this is a long option text"

select-width would be the width required to display option 2.

@toddparker
Copy link
Contributor

This is worth considering since it's the standard behavior with a native select.

@toddparker
Copy link
Contributor

Added to the feature request wiki:
https://github.com/jquery/jquery-mobile/wiki/Feature-Requests

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants