-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
PSA: vertical alignment #2082
Comments
Can you link me to a demo of this problem? |
@caseyjhol It's difficult to do so without the CDN working; the .1 release is present, but the .2 as linked in the README is presently returning a 404. |
Working with the CDNJS team to get the 1.13.2 version up. The playground (https://developer.snapappointments.com/bootstrap-select/playground) uses the latest "unstable" version of bootstrap-select. |
As you no doubt suspected, there's more to the story. Here's a 1.13.1-based minimal fiddle. https://jsfiddle.net/wn50x4ag/ For posterity in case the fiddle vanishes, this is using Bootstrap 3.3.7 and the 1.13.1 code. .mbr4 {
margin-bottom: 4px;
margin-right: 4px;
}
.vm {
vertical-align: middle;
} <div class="container">
<div class="row">
<div class="col-xs-12">
<button class="btn btn-default mbr4">Button</button>
<select class="selectpicker mbr4" data-container="body" title="Select"></select>
</div>
</div>
</div> The margins here are a part of how we've traditionally dealt with a particular responsive layout problem; debatable if it's the right thing at this point, but let's run with it for now, having come this far already. In BS3, all |
Thanks! Even though it's a bit of a fringe case, I still consider it a breaking change, which shouldn't have happened. I'll add |
Released in v1.13.4! |
Just a public service announcement for those upgrading from the 1.12 release, and find that vertical alignment is different, at least on Bootstrap 3 (still in the process of migration to v4 here).
In 1.12, the select button was always classed as a
btn-group
, so you'd getvertical-align: middle
for free. As such, if you had for example a layout with a select next to some buttons or button groups, they'd all line up properly vertically.In 1.13, the select is no longer classed as a
btn-group
, so if you want it to align in situations like that, you'll need to addvertical-align: middle
.The text was updated successfully, but these errors were encountered: