mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
WidgetsDemo: Avoid assertion in menu with custom components
This commit is contained in:
parent
8a2bde9fec
commit
8b3fe6f250
1 changed files with 4 additions and 1 deletions
|
|
@ -571,7 +571,10 @@ struct MenuPage : public Component
|
|||
struct CustomComponent : public PopupMenu::CustomComponent
|
||||
{
|
||||
CustomComponent (int widthIn, int heightIn, Colour backgroundIn)
|
||||
: idealWidth (widthIn), idealHeight (heightIn), background (backgroundIn)
|
||||
: PopupMenu::CustomComponent (false),
|
||||
idealWidth (widthIn),
|
||||
idealHeight (heightIn),
|
||||
background (backgroundIn)
|
||||
{}
|
||||
|
||||
void getIdealSize (int& width, int& height) override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue