-
Notifications
You must be signed in to change notification settings - Fork 97
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
Style of width:auto does not allow the select2 to expand when in a modal... #35
Comments
I don't even know… Maybe this help you: |
@rkit How does the dynamic width work? I've been trying different approaches to make it responsive, but the |
@gazpachu I don't know. I never faced such a problem, sorry |
@rkit This is what I mean (see below). It seems they get random widths: |
@gazpachu I guess you should play with css, |
@rkit setting the |
@gazpachu Maybe it is better to create an issue in Select2? This component doesn't add any CSS styles. |
I have added the folliwing to my Select2 component:
This component is rendered as part of a bootstrap modal dialog. The contents of the dropdow list do not force it to expand fully.
If I use this
width:auto
on a component that is NOT in a modal dialog, it worls ok. Any ideas why this does not work in a modal?The text was updated successfully, but these errors were encountered: