I ‘m using Ant Design’s Table component to display a considerable number of rows per page. The problem I’m facing is that the horizontal scroll is way at the bottom of the page. Is there a way to position the horizontal scroll bar on the top of the Table, instead of default behavior which is at the bottom.
I tried the docs but nothing related showed up.
Thanks in advance!
2
Answers
You have try it
but I recommend using scroll X so that the width of the table is not too big compared to your screen
I faced the same problem, and there is no native way to do it with AntD, but it can be done using CSS
rotateX
, here’s how I solved it:I took it from here: https://www.geeksforgeeks.org/how-to-change-the-position-of-scrollbar-using-css/
And here’s also a modified demo using this scroll top if you wanna try it first: https://codepen.io/laura-e24/pen/YzbWdxO