From 8c9b6ec65373ceba31d6f80e035385d8b02c92fd Mon Sep 17 00:00:00 2001 From: Sebastian Busch Date: Tue, 14 May 2019 09:34:00 +0200 Subject: [PATCH] prevent negative margin-bottom for form-item-with-help without this, value can become negative. this caused following fieldset to float to the right of the field with validation errors (cherry picked from commit 43da8a5a835904270a6ccf48859d7bd6d91e04cd) --- components/form/style/index.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/style/index.less b/components/form/style/index.less index 2df14b1e01ec..303275b4d436 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -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 {