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

fix upper most context menu item sometimes not clickable in electron #14401

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

jonah-iden
Copy link
Contributor

What it does

In electron when the context menu overlaps the center of the top window toolbar as seen here
grafik
The overlapping element is not clickable.
This PR fixes this issue similar to how vscode seems to fix it, by not allowing the context menu to overlap the window toolbar.

How to test

Open a file, open the context menu somewhere in the middle so that it would normally start at the top of the application.
The upper most entry should still be clickable and it should start below the window toolbar.

Follow-ups

Review checklist

Reminder for reviewers

Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM now 👍

@jonah-iden jonah-iden merged commit c7a1f49 into master Nov 7, 2024
11 checks passed
@jonah-iden jonah-iden deleted the jiden/fix-upper-most-context-menu-item branch November 7, 2024 15:53
@github-actions github-actions bot added this to the 1.56.0 milestone Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants