Incorrect scaling of dialogs when using a HiDPI monitor and a standard monitor on Windows
Categories
(Core :: Widget: Win32, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox86 | --- | affected |
People
(Reporter: tsmith, Unassigned)
Details
(Keywords: dpi, multi-monitors, Whiteboard: tpi:+, widget-next)
Attachments
(5 files)
Reporter | ||
Comment 1•8 years ago
|
||
Reporter | ||
Comment 2•8 years ago
|
||
Updated•8 years ago
|
Comment 4•8 years ago
|
||
Reporter | ||
Comment 5•8 years ago
|
||
![]() |
||
Updated•8 years ago
|
![]() |
||
Updated•6 years ago
|
Comment 9•4 years ago
•
|
||
I can reproduce this issue on my machine on Fx 86.0a1(2021-01-22) , win 10x64 with 2x external displays: a 4K (3840x2160) - scale 175% and a 1920x1080 - scale 100%.
![]() |
||
Comment 10•4 years ago
|
||
Two issues here -
- rescaling issues when dragging between two monitors scaled differently
- a few Firefox dialogs scaled incorrectly on one of the monitors with mixed scaling
Updated•4 years ago
|
![]() |
||
Comment 11•4 years ago
|
||
- issue with propagating scale changes down to content. widget, ipc, content process
- issues with windows that are split between two screens
- start investigating on Windows
- code exists to handle this, but there may be bugs
Matt, could you take a look?
Comment 12•4 years ago
|
||
We try to handle WM_DPICHANGED here:
https://searchfox.org/mozilla-central/rev/927e525f481a93a8f63d27a78ae6201e42b1b1fb/widget/windows/nsWindow.cpp#6181
Perhaps something is going wrong.
![]() |
||
Comment 13•4 years ago
•
|
||
FWIW, I was not able to reproduce this issue using two monitors with 150% scaling (primary) and 100% scaling. I tested with file open, file save, the about dialog, and various right-click context menus. Moving firefox (completely) from one monitor to the other resulted in UI that appeared to be scaled correctly.
![]() |
||
Updated•4 years ago
|
Comment 14•4 years ago
|
||
(In reply to Raluca from comment #9)
I can reproduce this issue on my machine on Fx 86.0a1(2021-01-22) , win 10x64 with 2x external displays: a 4K (3840x2160) - scale 175% and a 1920x1080 - scale 100%.
Which behaviour did you reproduce, and what were the STR for that? Thanks!
Updated•4 years ago
|
Comment 15•4 years ago
|
||
- rescaling issues when dragging between two monitors scaled differently. Please see the following video:
https://imgur.com/a/XYXwSYC - a few Firefox dialogs scaled incorrectly on one of the monitors with mixed scaling. Please see the 2 screenshots attached:
- 4k monitor 3840x2160 scale 175% : https://imgur.com/a/Bh8X5dT
- Standard 1920x1080 scale 100%: https://imgur.com/a/taFItkM
Updated•4 years ago
|
Updated•2 years ago
|
Description
•