|
|
@@ -363,8 +363,10 @@ void MainComponent::resized() |
|
|
{
|
|
|
{
|
|
|
auto bounds = getLocalBounds();
|
|
|
auto bounds = getLocalBounds();
|
|
|
|
|
|
|
|
|
|
|
|
#if JUCE_IOS || JUCE_ANDROID
|
|
|
if (auto* display = Desktop::getInstance().getDisplays().getDisplayForRect (getScreenBounds()))
|
|
|
if (auto* display = Desktop::getInstance().getDisplays().getDisplayForRect (getScreenBounds()))
|
|
|
return display->safeAreaInsets.subtractedFrom (display->keyboardInsets.subtractedFrom (bounds));
|
|
|
return display->safeAreaInsets.subtractedFrom (display->keyboardInsets.subtractedFrom (bounds));
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
return bounds;
|
|
|
return bounds;
|
|
|
}();
|
|
|
}();
|
|
|
|