Closed Bug 1817669 Opened 1 year ago Closed 1 year ago

Sidebar switcher popup misaligned with the switcher button

Categories

(Toolkit :: UI Widgets, defect)

defect

Tracking

()

VERIFIED FIXED
112 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox110 --- wontfix
firefox111 --- verified
firefox112 --- verified

People

(Reporter: itiel_yn8, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached image Screenshot

STR (on Windows, at least):

  1. Open the sidebar
  2. Click the switcher button
  3. Observe the popup alignment with the switcher

This is a 2-step regression: in bug 1788273 is was regressed so that the popup is misaligned only horizontally, and after bug 1789278 the popoup is misaligned both horizontally and vertically, in a way that its top side starts "inside" the button. See attached.

The panel is intentionally aligned to the icon here, so behavior seems intentional. But we could replace this._icon by this._switcherTarget to get the "aligned to button" behavior.

(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)

The panel is intentionally aligned to the icon here, so behavior seems intentional. But we could replace this._icon by this._switcherTarget to get the "aligned to button" behavior.

Looking at https://bugzilla.mozilla.org/show_bug.cgi?id=1355324#c9, I think the intention was to align the arrow to the icon. But now that we're not using arrows anymore there's no need in diverging from the usual standard.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1fe1f235ba1a
Tweak sidebar popup alignment. r=aminomancer
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox111 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Comment on attachment 9318630 [details]
Bug 1817669 - Tweak sidebar popup alignment. r=Itiel,aminomancer,dao

Beta/Release Uplift Approval Request

  • User impact if declined: comment 0
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Very targeted fix, though also we've shipped this already so not sure if worth uplifting.
  • String changes made/needed: none
  • Is Android affected?: No
Flags: needinfo?(emilio)
Attachment #9318630 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9318630 [details]
Bug 1817669 - Tweak sidebar popup alignment. r=Itiel,aminomancer,dao

Approved for 111.0b5

Attachment #9318630 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

Reproduced the misalignment on Firefox 112.0a1 (2023-02-19) on macOS 13.2.1 by following the STR from Comment 0.

The sidebar popup is aligned as expected on Firefox 112.0a1 (2023-02-22) and Firefox 111.0b5 (treeherder build). Tests were performed on macOS 13.2.1, Windows 11 and Ubuntu 22.04.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: