Skip to content

BlazorSize returns DIPs instead of Pixels #104

Description

@first-cong-archivist

(or maybe it's the other way 'round)

The whole Device-Independent Pixels thing is one of the worst ideas Microsoft ever came up with, but here we are.

BlazorSize is telling me the browser window width is 1410 but when I take a screenshot the browser window is in fact 1762 pixels wide. Those are off by a factor of 125% which is exactly the DIP-to-pixel conversion.

It looks like the browser is living in raw pixel land while BlazorSize is living in DIPland.

What about adding a Pixel member to BrowserWindowSize that contains a Width and Height in pixels?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions