PopupMenu border in the LnF classes?



I’ve trouble finding where I can hack the lookandfeel so that I can suppress the border of a PopupMenu’s panel (see screenshot below). Any idea?
All the best


PopupMenu::LookAndFeelMethods::drawPopupMenuBackground() ?


Sadly not, it does not create the border I’d like to suppress:

void LookAndFeel_V3::drawPopupMenuBackground (Graphics& g, int width, int height)
    g.fillAll (findColour (PopupMenu::backgroundColourId));
    ignoreUnused (width, height);

   #if ! JUCE_MAC
    g.setColour (findColour (PopupMenu::textColourId).withAlpha (0.6f));
    g.drawRect (0, 0, width, height);


If this is mac and the PopupMenu is in a new Window then could this just be the drop shadow OS X creates for each window?


Yeah, hard to tell from the picture, but it sounds like the default OSX window border


Something strange is that a ComboBox’s PopupMenu has no such border but a real shadow…


OK FOUND: the difference with the ComboBox was that I used withParentComponent:

… m.showMenuAsync(PopupMenu::Options().withParentComponent(getParentComponent()) …

Removing it removes the border.


So if the popupmenu has a parent then we can’t do anything about this border?
no way to change its colour or thickness?