Open Bug 1711680 Opened 3 years ago Updated 3 years ago

The Library - Downloads option is too close to the bottom edge of the panel when the Library is pinned to overflow menu

Categories

(Firefox :: Menus, defect, P2)

defect

Tracking

()

Tracking Status
firefox88 --- disabled
firefox89 --- affected
firefox90 --- affected

People

(Reporter: ailea, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [proton-hamburger-menu] [priority:2b])

Attachments

(3 files)

Attached image 2021-05-18_15h41_36.png

Tested with:

Release 88
Beta 89.0b13
Nightly 90.0a1 (2021-05-18)

Tested on:

Windows 10
Ubuntu 20.04
macOS 11

Steps:

  1. Launch firefox and go to the customize toolbar .
  2. Add the Library to the overflow menu.
  3. Go to the toolbar overflow menu, click on the Library and hover the mouse cursor over the downloads.

Actual result:

The hover highlight is too close to the bottom edge (even slightly cut).

Expected result:

There should be more space at the bottom edge of the Downloads option.

On first look I thought it was a matter of just changing this:
https://searchfox.org/mozilla-central/rev/98a9257ca2847fad9a19631ac76199474516b31e/browser/themes/shared/customizableui/panelUI.inc.css#326
to padding-top: 0, but I can reproduce this only if the Library item is "lonely" in the overflow menu- having 3 items there (the Library included) doesn't make this reproduce.
With the Library being the only item in the overflow menu, JS sets the parent panel-viewcontainer's min-height to 94.6667px, while with 3 items there, the same parent's min-height is set to 158.667px.
Toggling it off makes the issue reproduce also with 3 items in the overflow menu.

Priority: -- → P2
Whiteboard: [proton-hamburger-menu] → [proton-hamburger-menu] [priority:2b]

(In reply to Itiel from comment #1)

On first look I thought it was a matter of just changing this:
https://searchfox.org/mozilla-central/rev/98a9257ca2847fad9a19631ac76199474516b31e/browser/themes/shared/customizableui/panelUI.inc.css#326
to padding-top: 0, but I can reproduce this only if the Library item is "lonely" in the overflow menu- having 3 items there (the Library included) doesn't make this reproduce.
With the Library being the only item in the overflow menu, JS sets the parent panel-viewcontainer's min-height to 94.6667px, while with 3 items there, the same parent's min-height is set to 158.667px.
Toggling it off makes the issue reproduce also with 3 items in the overflow menu.

This sounds like it'd be caused by the fact that we never shrink the menu when opening a submenu, we only increase the height. So with 3 items in the overflow panel, the panel is already bigger?

(In reply to :Gijs (he/him) from comment #2)

(In reply to Itiel from comment #1)

On first look I thought it was a matter of just changing this:
https://searchfox.org/mozilla-central/rev/98a9257ca2847fad9a19631ac76199474516b31e/browser/themes/shared/customizableui/panelUI.inc.css#326
to padding-top: 0, but I can reproduce this only if the Library item is "lonely" in the overflow menu- having 3 items there (the Library included) doesn't make this reproduce.
With the Library being the only item in the overflow menu, JS sets the parent panel-viewcontainer's min-height to 94.6667px, while with 3 items there, the same parent's min-height is set to 158.667px.
Toggling it off makes the issue reproduce also with 3 items in the overflow menu.

This sounds like it'd be caused by the fact that we never shrink the menu when opening a submenu, we only increase the height. So with 3 items in the overflow panel, the panel is already bigger?

When entering the Library menu inside, yes.

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

Attachment

General

Created:
Updated:
Size: