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

当Form中的Input加上addonBefore属性的时候,此Input就会和其他元素对不齐 #6403

Closed
zhangchao828 opened this issue Jun 8, 2017 · 7 comments
Labels

Comments

@zhangchao828
Copy link

https://codepen.io/anon/pen/weKqrO?editors=1010

@ant-design-bot
Copy link
Contributor

Hello @zhangchao828, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

@ant-design-bot
Copy link
Contributor

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: #4897

@ImJoeHs
Copy link
Contributor

ImJoeHs commented Jun 20, 2017

@afc163
With addonBefore, class 'ant-input-group-wrapper' has no width setting while 'ant-input' set width to 100%, which leads to difference apperance. Is it by design?

@afc163
Copy link
Member

afc163 commented Jun 20, 2017

https://codepen.io/anon/pen/bRqPzZ?editors=001

What is the problem?

@ImJoeHs
Copy link
Contributor

ImJoeHs commented Jun 20, 2017

Have to manually add style={{ width: '100%' }} every time.
The inconsistency is a bit strange for me, but, ok, nevermind. Thanks for reply.

@zhangchao828
Copy link
Author

没升级到2.11.0之前,input宽度默认是父容器的100%,现在需要加style={{ width: '100%' }},不过我觉得这个不是问题,

@lock
Copy link

lock bot commented Jun 21, 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 Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants