Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1928083 - Bugzilla’s emojis are displayed on the bottom of the page when activated creating a new scroll bar #2351

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

kyoshino
Copy link
Collaborator

@kyoshino kyoshino commented Oct 30, 2024

Bug 1928083 - Bugzilla’s emojis are displayed on the bottom of the page when activated creating a new scroll bar

The cause is due to a change in page layout (fixed global header) in #2334, but reverting the change would rather introduce other problems (I don’t remember exactly, but I saw several problems while working on mobile optimization).

The solution is to detect the CSS Anchor Positioning API, which is not yet implemented in Firefox and Safari, and fall back to the legacy implementation if the API is not available.

This also fixes the anchor positioning itself. My initial implementation hardcoded anchor-name in CSS, but it doesn’t work well because there are usually multiple comments in a bug, and anchor-name needs to be unique for each. Not sure why it wasn’t caught earlier.

I’ve tested this fix with Firefox, Chrome and Safari.

Copy link
Collaborator

@dklawren dklawren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reproduced the error and verified that this pull request fixes the issue. r=dkl

@dklawren dklawren merged commit e470a88 into mozilla-bteam:master Oct 30, 2024
17 checks passed
@kyoshino kyoshino deleted the 1928083-emoji-popover branch October 30, 2024 19:43
@kyoshino
Copy link
Collaborator Author

@dklawren Thank you for your quick review 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants