-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
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
在chrome浏览器上,Table固定列遮挡了旁边的列 #9283
Comments
It will be better to write your issue/comment in English, so more people can understand you. |
Set a larger |
设置大点是可以,只是好奇为啥不同浏览器上显示不一样 |
|
|
@yesmeck scroll.x issue里的例子.ant-table-scroll
.ant-table-fixed-left, .ant-table-fixed-right 下对应列都是按照colgroup设置的100px 因为这 42+26px 的差异导致遮挡,Chrome存在这个问题,Firefox 按照100px设置,所以显示正常 在目前的数据长度下,设置 scroll.x 大于等于 1289(1221+42+26) 可以达到理想效果 尝试的方案尝试过设置 scroll.x = max-content,可以转换为 style="width: max-content;",Chrome效果理想 @hengkx |
Try |
@afc163 I think it's not good enough, the scrollbar always there even if the screen resolution is large enough |
这个 |
@afc163 设置了150%依然出现同样地遮挡问题;chrome |
scroll.x = max-content 效果非常理想 |
想了各种方法尝试动态计算表格列的宽度之和,到最后发现还是这个'max-content'效果最好 |
想了各种方法尝试动态计算表格列的宽度之和,到最后发现还是这个'max-content'效果最好🤣🤣🤣 |
想了各种方法尝试动态计算表格列的宽度之和,到最后发现还是这个'max-content'效果最好 |
Version
3.2.0
Environment
chrome 63.0.3239.84 ,win10
Reproduction link
https://codesandbox.io/s/24p3xp0z8y
Steps to reproduce
Column 8
列被固定的操作列遮挡了一部分What is expected?
固定列不遮挡旁边的列
What is actually happening?
在chrome上 固定列遮挡了旁边的列
The text was updated successfully, but these errors were encountered: