Conversation
Otherwise bootstrap's "display:block" is overwritten
|
What I also noticed is that now with Bootstrap3 all .select2-container.form-control {
...
width: 100% !important;
...
}...to my changes it works...although it's quite hacky... |
|
Thanks Juri for catching this! I got the feeling that the one or the other should fix the small gap to the right of Select2 when used in the context of a Bootstrap "Input Group" and its "Button Addons" but not within Bootstrap's grid (see screenshot and the demonstrations Input Groups section and its "Select2 append"/"Select2 multi append" examples … maybe the Please allow me another day or two to properly test and port back to Sass and LESS; got a small fix regarding the loading indicators position rotting away in a local feature branch, too … proper tests pending :/ |
|
Ah, almost forgot the container width – I'll give it a shot (all purely theoretic), eyes almost shut: As far as the project demo pages go, I recall they do not alter Select2's default behavior for From what I currently understand, this would allow for a fixed width to be set either via inline CSS or via an additional CSS class – however that may turn out regarding the various different Bootstrap scenarios. Maybe you are using Select2 with Another thought, regarding overriding the inline CSS style via just the I'll leave it at that for the moment – could you check and find out where those Note to self: Document use of |
|
Regarding the width, I also noticed that the select2 takes all style indications from the source element it is bound to and so I double-checked that there wasn't any kind of style indication on my select2 input fields. |
|
Finally got around merging (backporting to Sass/LESS sources, cross-browser testing) this – sorry for taking that long @juristr (there really have been personal reasons, but I'll spare us the sad part).
|

Otherwise bootstrap's "display:block" is overwritten by select2's css:
This commit seems to fix the issue.