-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
[Fix Issue #15691] .form-control-static changes height when empty #15699
Conversation
The value of |
Calculating it now with line height and font-size-base. Thanks for your feedback |
Do we need to do anything extra to cover the Line 321 in 85a6595
|
I don't believe so @cvrebert but I'd love to hear from others if they think so. My logic for why it wouldn't be necessary is that as the |
Modified the jsfiddle to show what I mean: EDIT: Nevermind, I see why we would want it on those. I'll make those changes 👍 |
Hi @kkirsche! You appear to have posted a live example (http://fiddle.jshell.net/m7vnxh7u/show/light/), which is always a good first step. However, according to Bootlint, your example has some Bootstrap usage errors, which might potentially be causing your issue:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
Fixed. Good catch, I messed up the logic behind this as it should be different for each version of the form-group to adjust for the different font-sizes of each |
Squashed commits into single due to small size of this change and it seems to have stabilized in regards to feedback. |
Just wanted to follow up on this and see if anything was missing. |
Wanted to follow up about this and just check if anything else was necessary. Thanks for your time guys 👍 |
Will merge this ASAP; I just need to rebase it to adjust the commit message. |
Rebased and fixed @cvrebert |
[Fixes twbs#15691] .form-control-static changes height when empty by setting the minimum height to the size it is when text is in the `.form-control-static` JSFiddle: http://jsfiddle.net/4pdo4yzo/ Compute the minimum height @line-height-computed = ~20px @font-size-base = 14px This should come to approx. 34px Add min-height to from-group-* per @cvrebert I had this wrong. The minimum height would depend on the font-size of that specific group, thus we need to declare it once for font-size-small and once also for font-size-large
@kkirsche Thanks man! |
Fix #15691: .form-control-static changes height when empty
[Fix Issue #15691] .form-control-static changes height when empty by setting the minimum height to the size it is when text is in the
.form-control-static
JSFiddle: http://jsfiddle.net/4pdo4yzo/