mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
DemoRunner: Avoid applying insets to main component on desktop systems
This commit is contained in:
parent
ddeae4a656
commit
3b3cd1bf1f
1 changed files with 2 additions and 0 deletions
|
|
@ -363,8 +363,10 @@ void MainComponent::resized()
|
|||
{
|
||||
auto bounds = getLocalBounds();
|
||||
|
||||
#if JUCE_IOS || JUCE_ANDROID
|
||||
if (auto* display = Desktop::getInstance().getDisplays().getDisplayForRect (getScreenBounds()))
|
||||
return display->safeAreaInsets.subtractedFrom (display->keyboardInsets.subtractedFrom (bounds));
|
||||
#endif
|
||||
|
||||
return bounds;
|
||||
}();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue