# Popup menu position broken in latest juce

**URL:** <https://forum.juce.com/t/popup-menu-position-broken-in-latest-juce/67787>\
**Category:** General JUCE discussion\
**Created:** [December 12, 2025, 11:54am UTC](https://forum.juce.com/t/popup-menu-position-broken-in-latest-juce/67787 "2025-12-12T11:54:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lalala](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lalala/32/8577_2.png) [@lalala](https://forum.juce.com/u/lalala)\
**Post date:** [December 12, 2025, 11:54am UTC](https://forum.juce.com/t/popup-menu-position-broken-in-latest-juce/67787/1 "2025-12-12T11:54:58Z")

</div>

Hi,

I have a case where [this commit](https://github.com/juce-framework/JUCE/commit/fdaf71b50f8d1813b58e47ec4461b7ff786c47eb) has broken the popupmenu position.  
If the target area is at the bottom of the parent area, the menu used to show up fully (cf first image). Now it doesnt open fully, and you have to move the mouse around to see all the items (cf gif).  
Below is a pip to reproduce.

 ![Screenshot 2025-12-12 at 12.44.31](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/0/9/09d70672e9f98eff7910854d581a4891da531fa4.png)

![Screen Recording 2025-12-12 at 12.34.06](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/3/9/39fefd082cfaa924eb52dda719e8d85e12ffd93f.gif)

> **PIP code**
>
> /\*  
> BEGIN\_JUCE\_PIP\_METADATA
> 
> name: BottomComboBoxApp  
> version: 1.0.0  
> vendor: You  
> website: [https://example.com](https://example.com)  
> description: Simple app with a ComboBox at the bottom.
> 
> dependencies: juce\_core,  
> juce\_events,  
> juce\_data\_structures,  
> juce\_graphics,  
> juce\_gui\_basics,  
> juce\_gui\_extra
> 
> exporters: xcode\_mac, vs2022
> 
> type: Component  
> mainClass: MainComponent
> 
> useLocalCopy: 1
> 
> END\_JUCE\_PIP\_METADATA  
> \*/
> 
> #include \<JuceHeader.h\>
> 
> //==============================================================================  
> class MainComponent : public juce::Component  
> {  
> public:  
> MainComponent()  
> {  
> for (int i = 1; i \<= 10; ++i)  
> combo.addItem ("Item " + juce::String (i), i);
> 
> ```auto
> combo.setSelectedId (1, juce::dontSendNotification);
> 
> // Force popup menu parent to be the main component
> combo.setLookAndFeel (&lookAndFeel);
> 
> addAndMakeVisible (combo);
> 
> setSize (420, 240);
> 
> ```
> 
> }
> 
> ~MainComponent() override  
> {  
> combo.setLookAndFeel (nullptr);  
> }
> 
> void resized() override  
> {  
> auto area = getLocalBounds().reduced (12);  
> combo.setBounds (area.removeFromBottom (32));  
> }
> 
> private:  
> //--------------------------------------------------------------------------  
> struct ComboBoxLNF : public juce::LookAndFeel\_V4  
> {  
> juce::PopupMenu::Options getOptionsForComboBoxPopupMenu (juce::ComboBox& box,  
> juce::Label& label) override  
> {  
> auto options = juce::LookAndFeel\_V4::getOptionsForComboBoxPopupMenu (box, label);
> 
> ```auto
> if (auto\* parent = box.findParentComponentOfClass<juce::Component>())
> options = options.withParentComponent (parent);
> 
> return options;
> }
> 
> ```
> 
> };
> 
> ComboBoxLNF lookAndFeel;  
> juce::ComboBox combo;
> 
> JUCE\_DECLARE\_NON\_COPYABLE\_WITH\_LEAK\_DETECTOR (MainComponent)
> 
> };

---

<div class="post-metadata">

**Author:** ![zsliu98](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/zsliu98/32/22502_2.png) [@zsliu98](https://forum.juce.com/u/zsliu98)\
**Post date:** [December 12, 2025, 1:58pm UTC](https://forum.juce.com/t/popup-menu-position-broken-in-latest-juce/67787/2 "2025-12-12T13:58:30Z")

</div>

Remove the line `.withItemThatMustBeVisible (box.getSelectedId())` in your own LAF.

> [@BR: Juce PopupMenu broken in JUCE 8.0.9 / iPadOS / AUv3?](https://forum.juce.com/t/br-juce-popupmenu-broken-in-juce-8-0-9-ipados-auv3/67010/5):
>
> On JUCE Develop 47d441787c9af0bbf5ba0a0694fe4f516be78be9 I see a similar issue. It shows an arrow and hides the other options (even there is enough space for display). And it does not align the top of the popup menu with the top of the combobox. Besides, it does not respect the juce::PopupMenu::Options().withPreferredPopupDirection(juce::PopupMenu::Options::PopupDirection::upwards); in another combobox (it should pop upwards to avo…

---

<div class="post-metadata">

**Author:** ![lalala](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lalala/32/8577_2.png) [@lalala](https://forum.juce.com/u/lalala)\
**Post date:** [December 12, 2025, 4:28pm UTC](https://forum.juce.com/t/popup-menu-position-broken-in-latest-juce/67787/3 "2025-12-12T16:28:01Z")

</div>

thanks a lot. adding a simple `withItemThatMustBeVisible (0)` did the trick.

Could this be added in BREAKING\_CHANGES.md ? That would have saved me a lot of time

---

<div class="post-metadata">

**Author:** ![zsliu98](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/zsliu98/32/22502_2.png) [@zsliu98](https://forum.juce.com/u/zsliu98)\
**Post date:** [December 12, 2025, 4:56pm UTC](https://forum.juce.com/t/popup-menu-position-broken-in-latest-juce/67787/4 "2025-12-12T16:56:30Z")

</div>

Yeah, I would also suggest adding that to the breaking changes, since I have already seen this problem four times (included myself).

> [@BR: PopupMenu::Options::withPreferredPopupDirection broken in 8.0.10](https://forum.juce.com/t/br-popupmenu-withpreferredpopupdirection-broken-in-8-0-10/67170/4):
>
> The previous post refers to a develop commit after the 8.0.9. And I think the docs has also changed: I am surprised that it is not documented as a breaking change in 8.0.10.
