Skip to content

[Bug]: wrong size of canvas in PDF viewer #12715

@mkihr-ojisan

Description

@mkihr-ojisan

What happened?

If window.devicePixelRatio is other than 2, the size of the canvas and its outer frame in the PDF viewer do not match. This screenshot was taken in an environment with a devicePixelRatio of 1.

Image

Perhaps this is due to the fact that 2 is hard-coded here.

Distribution version

Linux

App Version

0.22.1

What browsers are you seeing the problem on if you're using web version?

Firefox

Are you self-hosting?

  • Yes

Self-hosting Version

0.22.1

Relevant log output

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    💡 Open

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions