-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
PopupMenu closes as soon as it appears #81297
Comments
The problem, you are describing is unrelated to the You describe the behavior that:
The fact that the Menu is opened (in some conditions) at a position, where the mousecursor is located is problematic, because a quick mouse-down + mouse-up selects the item at that location. A different approach would be to open the Menu not on Mouse-Button-Down, but on Mouse-Button-Up. |
I don't know it's related or not I was just getting this error only when I clicked on optionmenu and it gets closed.
I misunderstood the behaviour, because how the menu is behaving in a condition where we have fewer items feels different than when we have a large list. The response was too quick to notice. |
I am going to reopen this issue, because this is an usability problem that needs to be fixed. |
subwindow_get_popup_safe_rect
Godot version
4.2 latest
System information
Godot v4.2.dev (f9004b52f) - Windows 10.0.22621 - Vulkan (Forward+)
Issue description
The popup menu closes as soon as it appears. This behavior appears to be triggered by the automatic selection of the first option in the list upon opening. It happens only when the list is large enough that requires scrolling.
here is the error I'm getting :
I want to solve this but not getting the exact problem and solution. Related to #73413 & #76480.
2023-09-04.14-36-05.mp4
Steps to reproduce
Run the attached project or
Create any OptionMenu add enough items that requires scroll.
Click on option menu and see it closes as soon as it appears.
Minimal reproduction project
optionmenu.zip
The text was updated successfully, but these errors were encountered: