Open Bug 959682 Opened 11 years ago Updated 2 years ago

when devPixelsPerPx is set under multi screen setting, popup window displayed in wrong place

Categories

(Core :: XUL, defect)

defect

Tracking

()

People

(Reporter: wengxt, Unassigned)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release) Build ID: 20131221082715 Steps to reproduce: I'm using two screen with setup 3200x1800 on the left and 1600x1200 on the right under linux. DPI is set to 228 so by default right click menu height would only be a little bit smaller than 1200. When devPixelsPerPx is larger than 1, firefox seems to think the screen size also times the factor. Which makes window in the right screen think they are in the left screen. Actual results: in my screen resolution setup, if devPixelsPerPx is set to 1.2, after right clicking on a window in 1600x1200 screen, clicking on the left part would show menu in the first screen, while the right half click would show menu in the right screen. if devPixelsPerPx is set to some larger number (for instance 2), all popup menu that should be shown in the right screen would be shown in the left screen. Expected results: menu appears in correct screen.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached image screenshot (deleted) —
It seems this bug has been fixed in Aurora.
Attached image 2015-07-28-103032_5520x3840_scrot.png (deleted) —
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 On the black penciled line (in the image I've attached above) is where the separation occurs for a `devPixelsPerPx` value of 1.2. I've only encountered this issue on `devPixelsPerPx` values that are between 1 and 2. It appears that this invisible line of separation changes it's x position on a linear scale based on the value of `devPixelsPerPx`
Reproduceable on Firefox 43.0 for any values of devPixelsPerPx between 1 and 2 (excluding 1.0 and 2.0).
Component: Untriaged → Event Handling
Product: Firefox → Core
Version: 26 Branch → Trunk
I see this on Windows, too. It feels like it *started* happening with a multi-dpi setup but now I'm seeing it without an external monitor connected, too.
OS: Linux → All
Hardware: x86_64 → All
William, is this a DOM thing or a Toolkit (?) thing?
Component: Event Handling → DOM
Flags: needinfo?(wchen)
I don't see anything that indicates this is a DOM thing. My guess is that we are getting some numbers wrong in layout/xul/nsMenuPopupFrame.cpp
Component: DOM → XP Toolkit/Widgets: Menus
Flags: needinfo?(wchen)
jfkthame, as you are recently working on Windows multi-dpi support, I suppose you have some insight around this issue.
Flags: needinfo?(jfkthame)
It's possible the upcoming patches in bugs like 1240533 and 1247335 may help here. If not, I'll try to look into it further; I think there may be additional issues specific to resolution support in the Linux widget backend.
Flags: needinfo?(jfkthame)
Confirming on Ubuntu 16.04, Firefox 46.0.1 X86-64.
This seem to be a duplicate of 61000
Component: XP Toolkit/Widgets: Menus → XUL
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: