ant-design Table - Extra padding below last row caused by setting the scollY

b0zn9rqh  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(58)

[ https://codepen.io/pen?&editors=001 ]( https://codepen.io/Kevin-Wang-the-selector/pen/NWmLLeW?editors=001 )

Steps to reproduce

Please see the link and scroll to the last row

What is expected?

The scroll Y should be flush with the last row leaving no additional padding. This is caused by incorrect calculation of Table body element

What is actually happening?

Extra padding is visible on the last table row
| Environment | Info |
| ------------ | ------------ |
| antd | 5.16.2 |
| React | 18.2.0 |
| System | Web |
| Browser | Chrome |

snz8szmq

snz8szmq1#

it looks like its for the scroll bar for scrollX. The padding should be remove if scrollX is not active

相关问题