Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more margin for single selects with allow_single_deselect #1257

Merged
merged 1 commit into from
Jun 4, 2013

Conversation

pfiller
Copy link
Contributor

@pfiller pfiller commented Jun 3, 2013

@mlharvest @kenearley @stof

This is a relatively simple change that adds more margin to the span preceding Chosen's delete control when allow_single_deselect: true. This fixes an issue when option text is longer than the width of the select (as described in #1250). I had to add a class to selected_item because there's no adjacent sibling selector in CSS that works backwards.

Fixes #1250

@mlettini
Copy link

mlettini commented Jun 4, 2013

+1!

@pfiller
Copy link
Contributor Author

pfiller commented Jun 4, 2013

@mlharvest ooh - an enthusiastic +1!

pfiller added a commit that referenced this pull request Jun 4, 2013
Add more margin for single selects with allow_single_deselect
@pfiller pfiller merged commit 1c80224 into master Jun 4, 2013
@pfiller pfiller deleted the fix-single-deselect-styles branch June 4, 2013 14:32
pfiller added a commit that referenced this pull request Jun 17, 2013
Show disabled options #1262
Only attempt to hide the dropdown if it's showing #1277
Add more margin for single selects with allow_single_deselect #1257
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

selected text span requires extra padding when also using allow_single_deselect
2 participants