1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-21 01:24:21 +00:00

DemoRunner: Fix a crash in MidiDemo

This commit is contained in:
Tom Poole 2022-07-05 15:24:33 +01:00
parent b08520c2de
commit 3ab2ef5924
2 changed files with 3 additions and 1 deletions

View file

@ -350,6 +350,7 @@ 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;