Bug 1215459 - [GTK3][HiDPI] Wrong positioning and sizing of popups
Summary: [GTK3][HiDPI] Wrong positioning and sizing of popups
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-26 19:12 UTC by Giovanni Campagna
Modified: 2015-05-26 21:30 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-05-26 21:30:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot (313.99 KB, image/png)
2015-04-26 19:12 UTC, Giovanni Campagna
no flags Details
Similar problem causing unusable pulldown in Preferences (175.97 KB, image/png)
2015-04-28 20:22 UTC, Christopher Beland
no flags Details
Screenshot of menu of wrong size in wrong place (129.77 KB, image/png)
2015-04-28 20:26 UTC, Christopher Beland
no flags Details

Description Giovanni Campagna 2015-04-26 19:12:16 UTC
Created attachment 1019099 [details]
Screenshot

Description of problem:
The positioning and sizing of right click menus and the Firefox menu is completely incorrect (see screenshot).

This is on a HiDPI (2880x1800) screen, with layout.css.devPixelsPerPx set to 2.

Version-Release number of selected component (if applicable):
firefox-37.0.2-2.fc22.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Right click anywhere on the page, preferably on the bottom.
2.
3.

Actual results:
See screenshot.

Expected results:
A properly positioned and sized popup menu, with all options visible.

Additional info:
Rightclicking towards the top left corner of the window works fine, except that it looks like the popup is capped to a 1440x900 subset of the window. Rightclicking outside this area gives random results, but usually more and more compressed towards the bottom of the screen.
The Firefox menu and entry completion popups are affected too.

This is with the GNOME theme, but it happens with the default theme as well.

Comment 1 Clarke Wixon 2015-04-27 22:31:01 UTC
I can confirm everything in the original report -- in my case it's on a 4K desktop monitor (3840x2160), with Gnome 3.14 or 3.16 set to HiDPI mode (org.gnome.desktop.interface scaling-factor set to 2) and Firefox using layout.css.devPixelsPerPx set to 2, as above.

My right-click menu is somehow even worse than the screenshot, with a scroll-up button, a scroll-down button, and no room for anything in between.  It's unusable.

The location bar and search bar drop-downs are usable and seem to be the right size, but they show up in the wrong place.

Comment 2 Christopher Beland 2015-04-28 20:22:02 UTC
Created attachment 1019866 [details]
Similar problem causing unusable pulldown in Preferences

Comment 3 Christopher Beland 2015-04-28 20:26:02 UTC
Created attachment 1019867 [details]
Screenshot of menu of wrong size in wrong place

I'm having similar symptoms in Preferences pull-downs and the pop-up that is the main Firefox menu.  (Attaching screenshots of both.)  This makes some of the preferences nearly unusable.  (The only workaround is to hover and use the keyboard to scroll blindly.)

Comment 4 Christopher Beland 2015-04-28 20:32:13 UTC
Drag-and-drop of bookmarks on the toolbar is also affected; the popup you get when you hover in preparation for dropping is malformed.

Comment 5 Ed Marshall 2015-05-02 19:00:39 UTC
Same problem here, on an X1 carbon with a 2560x1440 display.

FWIW, changing layout.css.devPixelsPerPx appears to have no effect.

Comment 6 Martin Stransky 2015-05-18 18:31:38 UTC
Please test 38.0.1.

Comment 7 Ed Marshall 2015-05-18 19:47:44 UTC
38.0.1 fixes the problem on my end. Thanks!

Comment 8 Ed Marshall 2015-05-18 22:07:37 UTC
Followup comment: this fixes the positioning problems, but the sizing of right-click context menus (attachment 1019099 [details]) still appears to be an issue.

(The longer the browser remains running, context menus will shrink vertically, first adding scroll widgets to the top and bottom, and eventually shrinking down to a single-pixel bar with a pair of scroll widgets.)

I haven't figured out what's actually triggering the shrinking yet, but it's an inevitable march toward the context menus being unusable.

Comment 9 Clarke Wixon 2015-05-19 14:51:57 UTC
I haven't seen the comment 8 effect yet, but I just upgraded moments ago and otherwise this is looking good.

Comment 10 Christopher Beland 2015-05-26 21:28:27 UTC
This is completely fixed for me in firefox-38.0.1-1.fc22.x86_64.

Ed, I think you may be testing the wrong version?  Your back/forward icons look different than mine.

Comment 11 Christopher Beland 2015-05-26 21:30:33 UTC
Speculatively closing; feel free to re-open or report a new bug if related problems are still occurring.


Note You need to log in before you can comment on or make changes to this bug.