1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

DemoRunner: Make parentSizeChanged() robust to calls made before the content component is set

This commit is contained in:
reuk 2025-07-03 15:59:44 +01:00
parent 22d5d7a598
commit ed8d89125a
No known key found for this signature in database

View file

@ -154,7 +154,8 @@ private:
#if JUCE_IOS || JUCE_ANDROID
void parentSizeChanged() override
{
getMainComponent().resized();
if (auto* comp = getContentComponent())
comp->resized();
}
#endif