Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] sticky tab和fixed navbar之间的布局问题 #12737

Open
jackjtr opened this issue Mar 29, 2024 · 1 comment
Open

[Bug Report] sticky tab和fixed navbar之间的布局问题 #12737

jackjtr opened this issue Mar 29, 2024 · 1 comment

Comments

@jackjtr
Copy link

jackjtr commented Mar 29, 2024

重现链接

https://codesandbox.io/p/devbox/vant-4-sticky-tab-with-navbar-68q5xs

Vant 版本

4.8.7

描述一下你遇到的问题。

导航栏固定在顶部,页面中tab需要粘性布局时展示异常

重现链接中的效果是tab有触发粘性布局但是被navbar挡住

将下面注释去掉后tab没有被navbar挡住但是navbar消失了,但我认为这也不是期望的效果

.the-nav-bar {
  /* position: fixed; */
}

重现步骤

见重现链接和问题描述

设备/浏览器

No response

@jackjtr
Copy link
Author

jackjtr commented Mar 29, 2024

之前提过feature request,仅供参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant