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 inline, size=small 情况下,水平对齐问题 #2234

Closed
LPegasus opened this issue Jun 30, 2016 · 4 comments
Closed

Form inline, size=small 情况下,水平对齐问题 #2234

LPegasus opened this issue Jun 30, 2016 · 4 comments
Assignees

Comments

@LPegasus
Copy link

  • antd 版本:
    ├─┬ antd@1.5.1
    ├─┬ antd-tools@0.9.3
    │ ├─┬ antd-md-loader@0.7.7
    ├── babel-plugin-antd@0.4.0
  • 操作系统及其版本:OSX 10.11.5
  • 浏览器及其版本: Chrome 51.0.2704.106

你做了什么?

引入了antd的Form、FormItem、Input、Cascader

你期待的结果是:

像官网一样正常显示

实际上的结果:

当Input的和Cascader的size设置为small时,

<FormItem><Input size="small" /></FormItem>
<FormItem><Cascader size="small" /></FormItem>

不在同一个水平面上。Cascader相对于Input下沉了1px

可重现的在线演示

http://codepen.io/anon/pen/vKmLva

@ddcat1115 ddcat1115 self-assigned this Jul 4, 2016
@afc163
Copy link
Member

afc163 commented Jul 4, 2016

左右高亮也被截断了。

@ddcat1115
Copy link
Contributor

网站上上下左右都没有,我一并看下

ddcat1115 added a commit to ddcat1115/ant-design that referenced this issue Jul 6, 2016
1. 修复small size下沉1px的问题
2. 修复左右阴影被截断的问题
3. 修复有值时hover及focus样式丢失的问题
afc163 added a commit that referenced this issue Jul 6, 2016
@ddcat1115
Copy link
Contributor

本周发布会fix掉,close了

@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