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

设置了scroll.y高度后导致横向滚动条拉到最后列和内容无法对齐 #2227

Closed
PeteLuo opened this issue Jun 30, 2016 · 4 comments
Assignees

Comments

@PeteLuo
Copy link

PeteLuo commented Jun 30, 2016

本地环境

  • antd 版本:1.6.2
  • 操作系统及其版本:win7旗舰64位
  • 浏览器及其版本: 目前使用的是chrome 49.0.2623.110,其余浏览器如Safari等也存在该问题

你做了什么?

使用一个Table组件

你期待的结果是:

在设置了scroll.y的情况下表格正常显示

实际上的结果:

直接看v1.6.2官方文档Table组件最后一个“适合同时展示有大量数据和数据列”的demo。

一开始未拖动横向滚动条效果:

default

滚动条拖动到最后的效果:

default

可重现的在线演示

http://ant.design/components/table/ 适合同时展示有大量数据和数据列 Demo

@sptimer
Copy link

sptimer commented Jul 4, 2016

估计是scroll的x没有设置好 ,你的每列都设置宽度了吗?

@PeteLuo
Copy link
Author

PeteLuo commented Jul 5, 2016

@RanZhu123 为了让例子更明显,我给表格加上了边框。
demo位置 http://codepen.io/PeteLuo/pen/XKgVaW
可以看到所有列都设置的宽度,但是滚动条拉到最右边依然是未对齐的,相差一个滚动条的宽度

图示:

table

@sptimer
Copy link

sptimer commented Jul 5, 2016

建议先通过修改右侧的paddingright 来解决吧?

@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