Skip to content
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

Input组件在FormItem中所占高度变为33px #1955

Closed
freedom12 opened this issue Jun 3, 2016 · 4 comments
Closed

Input组件在FormItem中所占高度变为33px #1955

freedom12 opened this issue Jun 3, 2016 · 4 comments
Assignees

Comments

@freedom12
Copy link

freedom12 commented Jun 3, 2016

你做了什么?

一个Form中的Input组件在设置addonBeafore前后高度不一致
当不设置时高度为33px
当设置时高度为32px

你期待的结果是:

input组件高度应该统一为32px
这样在切换状态时不会产生抖动

可重现的在线演示

官网的Form例子就是这样

@benjycui
Copy link
Contributor

benjycui commented Jun 6, 2016

有无 addon 都是 32px 哦 http://ant.design/components/form#components-form-demo-input-group

Please provide a re-producible demo: http://codepen.io/anon/pen/wGOWGW?editors=001

@freedom12
Copy link
Author

freedom12 commented Jun 7, 2016

之前表达有误 是将input放入FormItem中
input外层的div .ant-form-item-control高度会在增加addonBefore前后高度有1px变化
codepen_PzPpmE.zip

@freedom12 freedom12 changed the title Input Input组件在FormItem中所占高度变为33px Jun 8, 2016
@afc163 afc163 self-assigned this Jun 8, 2016
@afc163
Copy link
Member

afc163 commented Jun 8, 2016

整理了一下你发的例子:http://codepen.io/anon/pen/ZObmmj?editors=001

@afc163 afc163 closed this as completed in 0f5fe7b Jun 8, 2016
@lock
Copy link

lock bot commented May 5, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants