1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
JUCE/modules/juce_gui_basics/menus
reuk fdaf71b50f
PopupMenu: Fix some issues with positioning of initially-visible items
The old implementation had a few problems:

- For a target area near but not touching the bottom of the parent area,
  and a long menu with an initially-visible item halfway through the
  list, the initially-visible item would sometimes be obscured by the
  scroller area. The new implementation adjusts the size of the menu to
  ensure that there's enough additional room for the scroller areas.
- For a target area at the very top or very bottom of the target area,
  the menu would be positioned inconsistently; sometimes it would
  overlap with the target area, but other times it would be positioned
  with a gap separating the menu and target area. In the new
  implementation, if there's not enough room for scrollers to be
  positioned above/below the target area, the menu will always be
  positioned so that it touches but does not overlap the target area.
- The initially-selected item would normally be
  positioned as close as possible to the target area, but this wasn't
  always applied consistently for long menus, and the menu would
  sometimes only be scrolled enough to make the item visible at the end
  of the menu furthest from the target area. In the new implementation,
  the initially-visible item will always be positioned on top of the
  target area, or adjacent to it, depending on the available space.
2025-09-01 23:33:43 +01:00
..
juce_BurgerMenuComponent.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_BurgerMenuComponent.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_MenuBarComponent.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_MenuBarComponent.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_MenuBarModel.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_MenuBarModel.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_PopupMenu.cpp PopupMenu: Fix some issues with positioning of initially-visible items 2025-09-01 23:33:43 +01:00
juce_PopupMenu.h PopupMenu: Clarify behaviour of withItemThatMustBeVisible() in docs 2025-09-01 23:33:42 +01:00