compute-scroll-into-view icon indicating copy to clipboard operation
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.

Open linxianxi opened this issue 4 years ago • 1 comments

@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 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”?

linxianxi avatar Sep 09 '21 10:09 linxianxi

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.

jllodra avatar Sep 09 '21 11:09 jllodra