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]: MAppBar: ElevateOnScroll只会被js触发 未在初始化时处理 #2232

Closed
VleaStwo opened this issue Nov 13, 2024 · 2 comments · Fixed by #2243
Closed

[Bug Report]: MAppBar: ElevateOnScroll只会被js触发 未在初始化时处理 #2232

VleaStwo opened this issue Nov 13, 2024 · 2 comments · Fixed by #2243

Comments

@VleaStwo
Copy link
Contributor

Masa.Blazor version

1.7.8

Hosting model

Interactive Server

Describe the bug

ElevateOnScroll=true 时 理想状态当页面top>0时 显示海拔 反之海拔=0

在一些情况下 页面初始时 top>0 此时并不会生效, 需要滚动或window.resize触发

需要初始时判断 top is 0

Expected Behavior

No response

Steps To Reproduce

No response

Reproduction code

No response

.NET version

net 9.0

@capdiem
Copy link
Contributor

capdiem commented Nov 14, 2024

dotnet/aspnetcore#51646

blazor web app的增强导航导致的,正常来说刷新后滚动条应该是在顶部。现在只需要在初始化时判断一下滚动条的位置。

@VleaStwo
Copy link
Contributor Author

dotnet/aspnetcore#51646

blazor web app的增强导航导致的,正常来说刷新后滚动条应该是在顶部。现在只需要在初始化时判断一下滚动条的位置。

我也觉得是

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