Skip to content

Commit

Permalink
prevent negative margin-bottom for form-item-with-help
Browse files Browse the repository at this point in the history
without this, value can become negative. this caused following fieldset to float
to the right of the field with validation errors
  • Loading branch information
sbusch committed May 14, 2019
1 parent e20845c commit 43da8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/form/style/index.less
Expand Up @@ -113,7 +113,7 @@ input[type='checkbox'] {
}

&-with-help {
margin-bottom: @form-item-margin-bottom - @form-explain-height - @form-help-margin-top;
margin-bottom: max(0, @form-item-margin-bottom - @form-explain-height - @form-help-margin-top);
}

&-label {
Expand Down

0 comments on commit 43da8a5

Please sign in to comment.