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

table scroll y 是否可以考虑从height改为max-height? #2428

Closed
yexingxia opened this issue Jul 19, 2016 · 4 comments
Closed

table scroll y 是否可以考虑从height改为max-height? #2428

yexingxia opened this issue Jul 19, 2016 · 4 comments

Comments

@yexingxia
Copy link

本地环境

  • antd 版本: 1.6.4
  • 操作系统及其版本:windows7 x64
  • 浏览器及其版本: chrome

你做了什么?

引入table组件,设置了scroll={y: xxx}

你期待的结果是:

table的max-height是y值,当数据比较少高度不足y值时,table能够自适应高度

实际上的结果:

table的height是y值,当数据比较少高度不足y值时,table下面出现空白

可重现的在线演示

http://codepen.io/wmf/pen/jAkzXN?editors=001

@afc163
Copy link
Member

afc163 commented Jul 19, 2016

react-component/table#65

@afc163 afc163 closed this as completed Jul 19, 2016
@yexingxia
Copy link
Author

是否可以更新下antd的package.json里面rc-table的版本号呢?现在的版本号设置我没法更新到4.4.0

@afc163
Copy link
Member

afc163 commented Jul 19, 2016

@lock
Copy link

lock bot commented May 4, 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 4, 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

2 participants