Open Bug 1335812 Opened 7 years ago Updated 1 year ago

Incorrect scaling of dialogs when using a HiDPI monitor and a standard monitor on Windows

Categories

(Core :: Widget: Win32, defect, P3)

53 Branch
All
Windows 10
defect

Tracking

()

Tracking Status
firefox86 --- affected

People

(Reporter: tsmith, Unassigned)

Details

(Keywords: dpi, multi-monitors, Whiteboard: tpi:+, widget-next)

Attachments

(5 files)

Attached image bad_about_size.png
On my current setup I have two monitors a 27" 4K (3840x2160) monitor and a 24" (1920x1200) and I am running Windows 10 (1607)

The 4K monitor is scaled to 175% (otherwise everything would be tiny) and the standard monitor is at 100%.

When the browser is on the standard display some dialogs are scaled incorrectly (see attached images)
Attached image bad_dialog_size.png
Attached image current_setup.png
Component: General → Widget: Win32
Product: Firefox → Core
I've got the same problem; it's always worked fine up until now so this appears to be a regression introduced with the most recent 52.0b3 update.
Hi Tyson, please check out bug 1239347.  I'm curious, is what you're experiencing the same as described there?
Flags: needinfo?(twsmith)
(In reply to Tracy Walker [:tracy] from comment #4)
> Hi Tyson, please check out bug 1239347.  I'm curious, is what you're
> experiencing the same as described there?

No that seems to be slightly different. I think.
Flags: needinfo?(twsmith)
Priority: -- → P2
Whiteboard: tpi:+
Version : 59.0.2 (X64)
OS : Windows 10 (1709 build)
Main screen : laptop 17" 3840x2160 - 175% scale
Second screen : HD monitor 23" 1920x1080 - 100% scale

Same problem with version 59.0.2 (X64)

I have a laptop with 4K screen configured to 175% scale and a standard HD monitor configured to 100% scale.
Firefox on the 4K screen is good, but if I put it in the second monitor, the scale is not ok : too too big to be used.
Chrome, Opera, Maxthon or Edge can resize the UI with the new DPI settings on the second monitor, but not Firefox.

An extension made the job but only for version prior than V57 : https://github.com/ertug/autohidpi

Thank you...
Attached image hdmonitor.png
Same Firefox as 4kmonitor dragged to the HD monitor
Keywords: dpi, multi-monitors
Priority: P2 → P3
Whiteboard: tpi:+ → tpi:+, widget-next

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

Two issues here -

  1. rescaling issues when dragging between two monitors scaled differently
  2. a few Firefox dialogs scaled incorrectly on one of the monitors with mixed scaling
Summary: Incorrect scaling when using a HiDPI monitor and a standard monitor → Incorrect scaling when using a HiDPI monitor and a standard monitor on Windows
  • 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?

Flags: needinfo?(matt.woodrow)

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.

Summary: Incorrect scaling when using a HiDPI monitor and a standard monitor on Windows → Incorrect scaling of dialogs when using a HiDPI monitor and a standard monitor on Windows

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

Flags: needinfo?(matt.woodrow) → needinfo?(raluca.popovici)
Flags: needinfo?(mihai.boldan)
  1. rescaling issues when dragging between two monitors scaled differently. Please see the following video:
    https://imgur.com/a/XYXwSYC
  2. a few Firefox dialogs scaled incorrectly on one of the monitors with mixed scaling. Please see the 2 screenshots attached:
Flags: needinfo?(raluca.popovici)
Flags: needinfo?(mihai.boldan)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: