Forum Discussion

msekmfb1's avatar
msekmfb1
Iron Contributor
Jan 03, 2020
Solved

DPI scaling bug

I have been using Microsoft Edge Canary since the first build on my PC with FullHD screen and 125% system scale factor, and during this time there is present annoying DPI scaling bug, which then move...
  • Bdsrev's avatar
    Jan 03, 2020
    I think they decided to give up Pixel Canvas Recording (there was some issues with it), but they said Pixel Canvas Recording was always only intended to be a mid term solution until pixel coordinate conversions was ready. From the Doc:

    "There are more devices that requires fractional scale factors. ChromeOS tablet will need a touchable friendly UI. Allowing more flexible scale factors, then optimize UI for touch where necessary would allow us to continue improve UI for both clamshell and touch form factors. However, current implementation has a lot of issue with these scale factors. (see pkasting@’s doc for the issue).

    This can be solved by using pixel coordinates, but it may
    take time: Both application code as well as underlying framework has to be changed to use pixel coordinates and/or DIP library.
    require more maintenance code as application code is required to do the right thing about scaling.

    The reason why views are not aligned with fractional scale factor is that views does not have pixel information, and the way DIP is converted to pixel can also lead to a gap. This document describes an alternative approach to address these issues by providing pixel size so that views can layout views components at pixel boundaries using point based conversion. This is also a good mid term solution until pixel coordinate conversions is ready."

Resources