wesnoth/changelog_entries/submenu-positioning.md
Iris Morelle 5a7bd7c51f
gui: Better positioning of submenus in the main UI (#8517)
This makes it possible to fetch the on-screen coordinates of a drop
down menu item as the menu is dismissed by clicking on it so the
caller can use these coordinates to make a more informed decision as
to where to spawn a submenu, improving the previous mechanism wherein
the submenu would have its top left corner set at the mouse's location
which would produce different results depending on where exactly in
the menu item's box the mouse was at the time the parent menu was
dismissed.
2025-01-15 21:02:02 -05:00

171 B

User interface

  • Submenus are now positioned at the location of the menu item that spawned them, rather than the location of the mouse cursor at the time of click