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

SidePanel: Add an option to restrict content to the safe screen area

A major benefit of this change is that the menu in the DemoRunner will
now display reasonably on mobile devices with notches or other
decorations.
This commit is contained in:
reuk 2025-05-12 19:48:08 +01:00
parent f30d70049c
commit cfc006aaf9
No known key found for this signature in database
4 changed files with 70 additions and 8 deletions

View file

@ -308,6 +308,7 @@ MainComponent::MainComponent()
demosPanel.setTitle ("Demos");
demosPanel.setFocusContainerType (FocusContainerType::focusContainer);
demosPanel.setContentRestrictedToSafeArea (true);
showDemosButton.onClick = [this] { demosPanel.showOrHide (true); };