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 横向会出现滚动条 #39362

Closed
soulToken opened this issue Dec 7, 2022 · 6 comments · Fixed by #39455
Closed

table 横向会出现滚动条 #39362

soulToken opened this issue Dec 7, 2022 · 6 comments · Fixed by #39455
Labels
🤔 Need Reproduce We cannot reproduce your problem

Comments

@soulToken
Copy link

soulToken commented Dec 7, 2022

Reproduction link

https://codesandbox.io/embed/ji-ben-yong-fa-antd-5-0-4-forked-uimiyg?fontsize=14&hidenavigation=1&theme=dark

Steps to reproduce

table 设置 scroll={{ x: 'max-content'}} bordered

What is expected?

宽度 充足时 没有滚动条

What is actually happening?

宽度充足但是有滚动条

Environment Info
antd 5.0.4
React react
System 随便
Browser google
@MadCcc MadCcc added the 🤔 Need Reproduce We cannot reproduce your problem label Dec 7, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2022

Hello @soulToken. Please provide a online reproduction by forking codesandbox of antd@5.x or antd@4.x, or provide a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @soulToken, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 antd@5.xantd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

@soulToken
Copy link
Author

https://github.com/soulToken/antd5.x this GitHub repository

@soulToken
Copy link
Author

image

@soulToken
Copy link
Author

antd 4.x 并无此问题

@soulToken
Copy link
Author

发现 根本原因是因为 设置 bordered 之后 会出现滚动条

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Need Reproduce We cannot reproduce your problem
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants