Closed Bug 1703494 Opened 3 years ago Closed 3 years ago

Remove sync layout flush for hamburger menu opening with proton

Categories

(Firefox :: Toolbars and Customization, defect, P2)

Desktop
All
defect

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox89 --- wontfix
firefox90 --- fixed

People

(Reporter: Gijs, Assigned: mconley)

References

(Blocks 1 open bug)

Details

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

Attachments

(2 files)

As discussed in bug 1703405, this is a result of the sync item now potentially wrapping and the descriptionHeightWorkaround code running for it. Some options we could investigate to fix it:

  1. if we know the width available for the text beforehand (which I think we do, because the width of the panel is fixed?), ensure it is set directly on the element to ensure the XUL code for the preferred height of the element gets it right first time.
  2. switch the element in question to an HTML equivalent that wraps (possibly combined with (1)) and ensure we don't hit it in the descriptionHeightWorkAround code.
  3. switch everything in the main view to non-XUL flexbox and see if that helps.
Priority: -- → P2
Whiteboard: [proton-hamburger-menu] → [proton-hamburger-menu] [priority:2a]
Assignee: nobody → mconley
Attached image image.png

Interestingly, it doesn't even appear that we apply wrapping correctly in the FxA item, even with the descriptionHeightWorkaround. Looks like we truncate the string instead. See screenshot.

Status: NEW → ASSIGNED
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dccfbc75e6ac
Use CSS box for FxA CTA item to avoid need for descriptionHeightWorkaround. r=emalysz
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: