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

MenuBar breaks if the windows content_scale_mode != disabled and the window is resized #72532

Closed
whiteshampoo opened this issue Feb 1, 2023 · 6 comments
Milestone

Comments

@whiteshampoo
Copy link

whiteshampoo commented Feb 1, 2023

Godot version

4.0 beta 16

System information

Windows 11 (does not seem to matter)

Issue description

MenuBar reacts to mouseclicks strange, if content_scale_mode is not disabled and the window is resized/in fullscreen.
It looks like the problem is worse on the upper-half of the menu-button.

menubar_1

menubar_2

Steps to reproduce

Use a MenuBar, set the content_scale_mode (stretch mode) to cansvas_items or viewport and resize/fullscreen the window.

Minimal reproduction project

MenuTest.zip

@whiteshampoo
Copy link
Author

(does also happen in beta 17)

@Sauermann
Copy link
Contributor

Can confirm this on Linux. Beta 1 also had this problem.

@whiteshampoo
Copy link
Author

Still broken in RC 1

@clayjohn clayjohn added this to the 4.x milestone Feb 28, 2023
@zjf0123
Copy link

zjf0123 commented Mar 7, 2023

I also encountered this problem.
System: win10
Version: godot4,0

@zjf0123
Copy link

zjf0123 commented Mar 7, 2023

Through some attempts, I found that this bug can be triggered stably:
1.Set the display/window/stretch/mode to canvas_items in the project settings.
2. Set display/window/size/viewport_ Width and display/window/size/window_width_override to different values.
3. If the window size is adjusted when running a scene containing menubar, this bug will be triggered.

@kleonc
Copy link
Member

kleonc commented Jun 6, 2024

This seems the same as #86240, already fixed by #86304.

Indeed:

  • can reproduce in v4.2.1.stable.official [b09f793], v4.3.dev2.official [3524346].
  • can't reproduce in v4.2.2.stable.official [15073af], v4.3.beta1.official [a4f2ea9].

Closing as fixed.

@kleonc kleonc closed this as completed Jun 6, 2024
@kleonc kleonc modified the milestones: 4.x, 4.3 Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants