Skip to content

maybeFixupViewportPosition: Uncaught TypeError: document.getElementsByClassName(...)[0] is undefined #1334

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

Closed
jyn514 opened this issue Mar 26, 2021 · 0 comments · Fixed by #1596
Labels
A-frontend Area: Web frontend C-bug Category: This is a bug

Comments

@jyn514
Copy link
Member

jyn514 commented Mar 26, 2021

const navBarHeight = document.getElementsByClassName("nav-container-rustdoc")[0].offsetHeight;

This was first added in #873; I think it regressed in #1089.

cc @Nemo157 @antifuchs - does one of you have time to take a look?

@jyn514 jyn514 added C-bug Category: This is a bug A-frontend Area: Web frontend labels Mar 26, 2021
@jyn514 jyn514 changed the title MaybeFixupViewportPosition: Uncaught TypeError: document.getElementsByClassName(...)[0] is undefined maybeFixupViewportPosition: Uncaught TypeError: document.getElementsByClassName(...)[0] is undefined Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Web frontend C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant