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 native popup menus position in embedded windows. #102079

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Jan 27, 2025

Fixes #102060

Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

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

Fixes the bug on Windows.

@Calinou Calinou added the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Feb 3, 2025
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Tested locally, it works as expected on Windows 11 24H2.

image

canvas_items scaling:

image

canvas_items scaling + 150% Windows scale:

image

Note that changes to the Windows display scale only affect Godot after a restart. This applies to its native popups, but also its window border. Compare this with Windows Explorer which updates its scale instantly:

image

@Repiteo Repiteo merged commit 92ebcd2 into godotengine:master Feb 4, 2025
19 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Feb 4, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release platform:macos platform:windows topic:gui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Native MenuPopup Within MenuBar shows in random location
4 participants