Skip to content

Scrollbars are briefly added if opening an image below the viewport #22

@birjj

Description

@birjj

When opening an image that's cutoff by the lower part of the viewport (or that exists entirely below the viewport), the placeholder that gets animated into place causes a scrollbar to appear. This causes the page content to be offset momentarily.

To reproduce: Go to https://yamz.jfagerberg.me/, scroll down until an image is cutoff by the lower half of the viewport (i.e. only a small part of the image is visible, the rest of the image is below the viewport). Click the image. While the animation happens, a scrollbar will appear (or in this case, a secondary scrollbar)

Image showing two scrollbars while an image is being opened

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions