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 gets overflow scroll instead of auto when scroll is set #29082
Comments
It's actually not a duplicate because this is about the table body, not the table header. |
这个issue也没有提出解决的方案啊 |
问题解决了吗? |
这个问题没有解决吧 |
这个问题确实相当影响美观,还没有解决吧 |
@afc163 没有改成 overflow: auto 是会出现什么问题吗? |
changing the table body |
Anybody able to find a solution or workaround? |
+1 这样在window系统的浏览器太丑了 |
This issue is NOT because of antd. Antd uses rc-table internally. And the rc-table has the following code (take a look at styele initialization). Unfortunately, this issue can't be resolved without corresponding improvements in the rc-table. |
The history about fixing this issue: #6800 (comment) |
大佬们,这个问题还没解决吗? |
Reproduction link
Steps to reproduce
Look at the table, it has a gray scrollbar-holder even though it's not tall enough to scroll.
What is expected?
It should have
overflow-y: auto
instead ofoverflow-y: scroll
since auto allows scrolling when max-height is reached, whilescroll
alwaysWhat is actually happening?
It gets
overflow-y: scroll
, leading to a gray bar at all times.The text was updated successfully, but these errors were encountered: