Skip to content

When you have a fixed head at the top,it doesn't work when it's covered by the head. #817

@linxianxi

Description

@linxianxi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions