Skip to content

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

Closed
@jyn514

Description

@jyn514

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Web frontendC-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions