mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
DemoRunner: Make parentSizeChanged() robust to calls made before the content component is set
This commit is contained in:
parent
22d5d7a598
commit
ed8d89125a
1 changed files with 2 additions and 1 deletions
|
|
@ -154,7 +154,8 @@ private:
|
||||||
#if JUCE_IOS || JUCE_ANDROID
|
#if JUCE_IOS || JUCE_ANDROID
|
||||||
void parentSizeChanged() override
|
void parentSizeChanged() override
|
||||||
{
|
{
|
||||||
getMainComponent().resized();
|
if (auto* comp = getContentComponent())
|
||||||
|
comp->resized();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue