ant-design The tour does not scroll when the reference is hidden by the header component

dhxwm5r4  于 5个月前  发布在  其他
关注(0)|答案(2)|浏览(53)

Steps to reproduce

I am using the Layout with the header form antd and once that I do a scroll in the screen and my antd buttons are hidden by the header, the tour does not force tot he screen to un-hide the button.
For reproduce it only click in the link and do all the scroll that you can, then, click "beging tour" button

What is expected?

That the tour component force to scroll when the element is hide by another element too

What is actually happening?

The tour component only force the scroll when is a component that is not in the viewport
| Environment | Info |
| ------------ | ------------ |
| antd | 5.16.4 |
| React | 18.2.0 |
| System | Mac |
| Browser | Google Chrome |

holgip5t

holgip5t2#

We use scrollIntoView , which cannot meet your demands with fixed element.
You can scroll with offset by listening current of Tour.

相关问题