diff --git a/examples/Audio/MidiDemo.h b/examples/Audio/MidiDemo.h index f6fed0698e..35e9db0e15 100644 --- a/examples/Audio/MidiDemo.h +++ b/examples/Audio/MidiDemo.h @@ -241,8 +241,8 @@ public: private: //============================================================================== - struct MidiDeviceListBox : public ListBox, - private ListBoxModel + struct MidiDeviceListBox : private ListBoxModel, + public ListBox { MidiDeviceListBox (const String& name, MidiDemo& contentComponent, diff --git a/modules/juce_gui_basics/widgets/juce_ListBox.cpp b/modules/juce_gui_basics/widgets/juce_ListBox.cpp index e94db2abb0..b2c8f8c1e2 100644 --- a/modules/juce_gui_basics/widgets/juce_ListBox.cpp +++ b/modules/juce_gui_basics/widgets/juce_ListBox.cpp @@ -350,7 +350,6 @@ public: auto newY = content.getY(); auto newW = jmax (owner.minimumRowWidth, getMaximumVisibleWidth()); auto newH = owner.totalItems * owner.getRowHeight(); - DBG (owner.totalItems); if (newY + newH < getMaximumVisibleHeight() && newH > getMaximumVisibleHeight()) newY = getMaximumVisibleHeight() - newH;