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:
parent
f30d70049c
commit
cfc006aaf9
4 changed files with 70 additions and 8 deletions
|
|
@ -308,6 +308,7 @@ MainComponent::MainComponent()
|
|||
|
||||
demosPanel.setTitle ("Demos");
|
||||
demosPanel.setFocusContainerType (FocusContainerType::focusContainer);
|
||||
demosPanel.setContentRestrictedToSafeArea (true);
|
||||
|
||||
showDemosButton.onClick = [this] { demosPanel.showOrHide (true); };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue