From 525efb8c7695af64daa38eb200c3f99c46d830b2 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 22 Dec 2017 11:48:07 +0800 Subject: [PATCH] Fix form item height problem close #8701 revert fix of #6097 cause it does not exist in 3.x --- components/form/style/index.less | 35 -------------------------------- 1 file changed, 35 deletions(-) diff --git a/components/form/style/index.less b/components/form/style/index.less index 79f00693b1..8dd7e231ff 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -243,22 +243,6 @@ form { .@{ant-prefix}-select, .@{ant-prefix}-cascader-picker { width: 100%; - // Fix https://github.com/ant-design/ant-design/issues/6097 - &:only-child { - display: block; - position: relative; - top: (@form-component-max-height - @input-height-base) / 2; - - &.@{ant-prefix}-select-sm, - &.@{ant-prefix}-cascader-picker-small { - top: (@form-component-max-height - @input-height-sm) / 2; - } - - &.@{ant-prefix}-select-lg, - &.@{ant-prefix}-cascader-picker-large { - top: (@form-component-max-height - @input-height-lg) / 2; - } - } } // Don't impact select inside input group @@ -267,25 +251,6 @@ form { width: auto; } - // Don't impact select inside input group addon - .@{ant-prefix}-input-group-addon .@{ant-prefix}-select, - .@{ant-prefix}-input-group-addon .@{ant-prefix}-cascader-picker { - &:only-child { - display: inline-block; - top: 0; - - &.@{ant-prefix}-select-sm, - &.@{ant-prefix}-cascader-picker-small { - top: 0; - } - - &.@{ant-prefix}-select-lg, - &.@{ant-prefix}-cascader-picker-large { - top: 0; - } - } - } - // fix input with addon position. https://github.com/ant-design/ant-design/issues/8243 .@{ant-prefix}-input-group-wrapper { position: relative;