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

v0.9.15 rendering container with 0px width #26

Closed
bbuchalter opened this issue Jun 12, 2013 · 3 comments
Closed

v0.9.15 rendering container with 0px width #26

bbuchalter opened this issue Jun 12, 2013 · 3 comments

Comments

@bbuchalter
Copy link

It seems 26e12ed is causing the chzn div to have an 0px width (see attached image). More specifically, it seems related to these lines:

26e12ed5fd#L3L133

With no real experience with chosen-rails and big ol' commit, it's not obvious to me what's the reason behind these changes. For now, solution is to just revert to v0.9.14.

@bbuchalter
Copy link
Author

Doh! Forgot screenshot.
screenshot from 2013-06-12 17 29 10

@tsechingho
Copy link
Owner

Yes, this change is came from Chosen 0.9.15. The suitable solution is giving a width option in javascript.

$ ->
  # enable chosen js
  $('.chzn-select').chosen
    allow_single_deselect: true
    no_results_text: 'No results matched'
    width: '200px'

I'v added this to readme.

@bbuchalter
Copy link
Author

Closed with e55f4f8.

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

No branches or pull requests

2 participants