(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?
(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?