Closed Bug 1739383 Opened 11 months ago Closed 11 months ago

[wayland] popup margins accounted for incorrectly in bottom-anchored popups

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

Attached file Test-case

See the test-case, which displays correctly on X11/XWayland, but not on wayland.

Martin, do you know where the positioning code may be diverging? I see wayland does its own context menu positioning and so on so maybe I should look around there.

Flags: needinfo?(stransky)

With some care, applying the margin to the anchor rather than as a fixed
margin to the popup makes it work correctly when flipping.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(stransky)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/208b8d7b09f9
[wayland] Fix interaction of margins on anchored popups that GTK decides to flip. r=stransky
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Regressions: 1749390
You need to log in before you can comment on or make changes to this bug.