compute-scroll-into-view
compute-scroll-into-view copied to clipboard
When you have a fixed head at the top,it doesn't work when it's covered by the head.
@stipsan
https://codesandbox.io/s/an-niu-lei-xing-antd-4-17-0-alpha-0-forked-nk52i?file=/index.js
1、scroll to the position like this image

2、click the button
3、Nothing happened
If I use scrollMode=“always” and custom behavior to set value=el.top + 70 can resolve it.But I do not need “always”,I need “if needed”. Can you provide an offsetTop parameter to configure with scrollMode=“if-needed”?
I'm having a similar issue, probably comes from the same problem.
When having a table with thead as position sticky. The first tbody row never gets into view (it is always covered by the first thead row).
Tested in latest Chrome.