Closed Bug 1807892 Opened 3 years ago Closed 3 years ago

Dropdown with enough options to require a scrollbar causes options to be shortened with ellipses

Categories

(Firefox :: Menus, defect)

Desktop
Windows 10
defect

Tracking

()

VERIFIED FIXED
110 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox108 --- unaffected
firefox109 --- unaffected
firefox110 --- fixed

People

(Reporter: ehoogeveen, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files, 2 external files)

Attached file Dropdown testcase —

Bisected using mozregression, caused by bug 1805694.

Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=30fc4653fdff8501187251bf8256e50df825acbd&tochange=e61e04de54d1b3b90eadfedd3906fa310e887ad3

Steps to reproduce:

  1. From a fresh profile on the latest Nightly,
  2. Open the attached testcase and click the dropdowns.

Expected behavior:
The dropdown with the scrollbar should show the options without shortening them.

Actual behavior:
In the dropdown that requires a scrollbar, the options only show "20...", while the dropdown without a scrollbar shows the full years.

Tested on Windows 10 (21H2). Other operating systems might show different results due to different native scrollbar styling.

Emilio, could you have a look?

Flags: needinfo?(emilio)

Set release status flags based on info from the regressing bug 1805694

See the comment for why we can't just use scrollbar-gutter: stable,
which is what we'd want, ideally.

This is reproducible on Win10 and also Linux as long as:

  • Overlay scrollbars are disabled.
  • The scrollbar size is bigger than the menulist arrow size.

This used to be done by the chunk of code here:

Which changed the size of the menu (not just the popup) which then the
popup expanded to. So quite hacky over-all.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

This doesn't change behavior but should make what's going on slightly
clearer.

Depends on D165669

Thanks a lot for the report!

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/832901f88c03 Keep accounting for scrollbar sizes on menulist popup intrinsic size. r=tnikkel,layout-reviewers https://hg.mozilla.org/integration/autoland/rev/5c0d75f58aaa Some minor improvements to popup sizing code. r=tnikkel,layout-reviewers
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/bdf5bdc50976 Fix test_popup_recreate.xhtml on some platforms.

I can confirm that it's fixed in the current Nightly, thanks!

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: