PopupMenu settable border size (Feature Request)


#1

Hi there. I’m trying to remove the border from my popup menu, and it appears that the border size is not settable. In PopupMenu.cpp there’s a namespace, PopupMenuSettings, where the borderSize variable is set to 2. I was wondering if there could be a way to provide a custom border size. For example, adding a virtual method called getPopupMenuBorderSize() to the LookAndFeelMethods struct, where the default implementation returns 2.


PopupMenu bug caused by border size being zero
#2

I’ve added this to develop (b7a7563). You can override getPopupMenuBorderSize() in your custom L&F to return a different border size.


#3

Wow that was fast! Thanks a lot!