You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Layout on windows 10 differ between dpi scaling #20505
I just rebased dev build to top of master, and seeing below screenshots when run mach run --dev :
(Windows 10, local dev build from master a208d42)
It does seems only layout if off, while eventhandler still maps to correct location (i.e clicking Download..button doesn't work if click where currently button is rendered). I couldn't do enough bisect / or dig into where it comes from (and it may possible my machine's only odd case having issues)
I take it back for regressions around commits - it does seem like dpi-related. This is my first attempt to run other win dev machine which have 150% dpi settings (main machine is on 100%). Changing dpi scaling I got different rendering results, while only 100% shows correct layout.
Not sure if it's dupe (I couldn't search exact dupes on my end) - if so, feel freely close it. 🙏
@FallingSnow what happens if you click where the blue button is "supposed" to be? As in, do the coordinates of the click are properly calculated, or are they also scaled up?
It would seem the coordinates of the click do not line up with how the page is rendered. Clicking the Download Servo button results in nothing happening.
Never mind, just much slower at loading than previously. The scaling issue seems to be partially correct on X11 now. Partially because the scaling on gnome is set to 200% but servo is rendering at 100%.
Activity
jdm commentedon Apr 2, 2018
I don't see this on macOS.
kwonoj commentedon Apr 2, 2018
So far this seems on win only (my mac / linux works correctly)
kwonoj commentedon Apr 2, 2018
I'll try one another windows machine I have to confirm if it's machine / or config oddness.
kwonoj commentedon Apr 2, 2018
I take it back for regressions around commits - it does seem like dpi-related. This is my first attempt to run other win dev machine which have 150% dpi settings (main machine is on 100%). Changing dpi scaling I got different rendering results, while only 100% shows correct layout.
Not sure if it's dupe (I couldn't search exact dupes on my end) - if so, feel freely close it. 🙏
100%:

150%:

200%:

[-]Layout regression on windows 10?[/-][+]Layout on windows 10 differ between dpi scaling[/+]kwonoj commentedon Apr 2, 2018
it may seems upstream related: rust-windowing/winit#105
atouchet commentedon Apr 3, 2018
I am having issues reproducing this. This is what I am seeing at 150% scaling:
kwonoj commentedon Apr 3, 2018
Interesting, curious what could be other factor to make differences.
paulrouget commentedon Apr 3, 2018
@kwonoj can you check if it regressed because of #20228 ?
paulrouget commentedon Apr 3, 2018
Or maybe #19895
kwonoj commentedon Apr 3, 2018
@paulrouget yes, #20228 seems related. I built master at 28c92db, right before #20228 and it renders correctly.
kwonoj commentedon Apr 4, 2018
I have few theory and trying to verify now, just taking some time due to sadly slow build speed on windows.
paulrouget commentedon Apr 4, 2018
Might be related: rust-windowing/winit#332
FallingSnow commentedon Apr 8, 2018
I'm on Arch Linux, Gnome 3.28.0, Wayland. My desktop is scaled 200% on a 4k screen. I also experience a scaling issue.
paulrouget commentedon Apr 10, 2018
@FallingSnow what happens if you click where the blue button is "supposed" to be? As in, do the coordinates of the click are properly calculated, or are they also scaled up?
FallingSnow commentedon Apr 23, 2018
It would seem the coordinates of the click do not line up with how the page is rendered. Clicking the Download Servo button results in nothing happening.
paulrouget commentedon Apr 26, 2018
If you use X11 instead, do you have the same issue?
kwonoj commentedon Jun 30, 2018
Latest winit have support for hidpi across platform (https://github.com/tomaka/winit/blob/master/CHANGELOG.md#version-0160-2018-06-25) . I tried to bump but realized lot of other dependencies needed to be updated as well, such as servo-skia.
paulrouget commentedon Jul 2, 2018
@kwonoj did you try with #21087?
kwonoj commentedon Jul 2, 2018
@paulrouget not directly, it includes cherrypick of my commits with patched skia (https://github.com/servo/servo/pull/21087/files#diff-80398c5faae3c069e4e6aa2ed11b28c0R19), guess that patch made work to remove duplicated dependencies. I was thought of waiting skia bump to pickup latest glutin.
atouchet commentedon Jul 4, 2018
Did #21087 fix this?
FallingSnow commentedon Jul 4, 2018
Just tried latest nightly on X11, Arch Linux, Gnome 3.28.2. Nothing but a grey window now.

FallingSnow commentedon Jul 4, 2018
Never mind, just much slower at loading than previously. The scaling issue seems to be partially correct on X11 now. Partially because the scaling on gnome is set to 200% but servo is rendering at 100%.