From 90abc8c1c524eafbf7ff36d1cdb4f7ad88b24c9a Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 18 Aug 2025 13:26:36 +0100 Subject: [PATCH] PopupMenu: Clarify behaviour of withItemThatMustBeVisible() in docs --- modules/juce_gui_basics/menus/juce_PopupMenu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/juce_gui_basics/menus/juce_PopupMenu.h b/modules/juce_gui_basics/menus/juce_PopupMenu.h index 2bd58a77a9..d5e9d181eb 100644 --- a/modules/juce_gui_basics/menus/juce_PopupMenu.h +++ b/modules/juce_gui_basics/menus/juce_PopupMenu.h @@ -544,6 +544,9 @@ public: This is useful to ensure that a particular item is shown when the menu contains too many items to display on a single screen. + + The specified item will be positioned at the target screen area of the + menu if possible. */ [[nodiscard]] Options withItemThatMustBeVisible (int idOfItemToBeVisible) const;