Skip to content

Layout on windows 10 differ between dpi scaling #20505

Open

Description

@kwonoj

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)

image

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)

Activity

  1. jdm commented on Apr 2, 2018

    @jdm
    Member

    I don't see this on macOS.

  2. kwonoj commented on Apr 2, 2018

    @kwonoj
    ContributorAuthor

    So far this seems on win only (my mac / linux works correctly)

  3. added
    P-windows
    C-needs-regression-range
    on Apr 2, 2018
  4. kwonoj commented on Apr 2, 2018

    @kwonoj
    ContributorAuthor

    I'll try one another windows machine I have to confirm if it's machine / or config oddness.

  5. kwonoj commented on Apr 2, 2018

    @kwonoj
    ContributorAuthor

    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%:
    100

    150%:
    150

    200%:
    200

  6. changed the title [-]Layout regression on windows 10?[/-] [+]Layout on windows 10 differ between dpi scaling[/+] on Apr 2, 2018
  7. kwonoj commented on Apr 2, 2018

    @kwonoj
    ContributorAuthor

    it may seems upstream related: rust-windowing/winit#105

  8. atouchet commented on Apr 3, 2018

    @atouchet
    Contributor

    I am having issues reproducing this. This is what I am seeing at 150% scaling:

    150% scaling

  9. kwonoj commented on Apr 3, 2018

    @kwonoj
    ContributorAuthor

    Interesting, curious what could be other factor to make differences.

  10. removed
    C-needs-regression-range
    on Apr 3, 2018
  11. paulrouget commented on Apr 3, 2018

    @paulrouget
    Contributor

    @kwonoj can you check if it regressed because of #20228 ?

  12. paulrouget commented on Apr 3, 2018

    @paulrouget
    Contributor

    Or maybe #19895

  13. kwonoj commented on Apr 3, 2018

    @kwonoj
    ContributorAuthor

    @paulrouget yes, #20228 seems related. I built master at 28c92db, right before #20228 and it renders correctly.

  14. kwonoj commented on Apr 4, 2018

    @kwonoj
    ContributorAuthor

    I have few theory and trying to verify now, just taking some time due to sadly slow build speed on windows.

  15. paulrouget commented on Apr 4, 2018

    @paulrouget
    Contributor

    Might be related: rust-windowing/winit#332

  16. FallingSnow commented on Apr 8, 2018

    @FallingSnow

    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.

    screenshot from 2018-04-08 08-37-39

  17. paulrouget commented on Apr 10, 2018

    @paulrouget
    Contributor

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

  18. FallingSnow commented on Apr 23, 2018

    @FallingSnow

    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.

  19. paulrouget commented on Apr 26, 2018

    @paulrouget
    Contributor

    If you use X11 instead, do you have the same issue?

  20. kwonoj commented on Jun 30, 2018

    @kwonoj
    ContributorAuthor

    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.

  21. paulrouget commented on Jul 2, 2018

    @paulrouget
    Contributor

    @kwonoj did you try with #21087?

  22. kwonoj commented on Jul 2, 2018

    @kwonoj
    ContributorAuthor

    @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.

  23. atouchet commented on Jul 4, 2018

    @atouchet
    Contributor

    Did #21087 fix this?

  24. FallingSnow commented on Jul 4, 2018

    @FallingSnow

    Just tried latest nightly on X11, Arch Linux, Gnome 3.28.2. Nothing but a grey window now.
    screenshot from 2018-07-04 09-18-57

  25. FallingSnow commented on Jul 4, 2018

    @FallingSnow

    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%.

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

    P-windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions