mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
PopupMenu: Only display inside safe user area
This commit is contained in:
parent
c474cb2469
commit
7626f86607
1 changed files with 1 additions and 1 deletions
|
|
@ -822,7 +822,7 @@ struct MenuWindow final : public Component
|
|||
targetPoint = relativeTo->localPointToGlobal (targetPoint);
|
||||
|
||||
auto* display = Desktop::getInstance().getDisplays().getDisplayForPoint (targetPoint * scaleFactor);
|
||||
auto parentArea = display->safeAreaInsets.subtractedFrom (display->totalArea);
|
||||
auto parentArea = display->userArea.getIntersection (display->safeAreaInsets.subtractedFrom (display->totalArea));
|
||||
|
||||
if (auto* pc = options.getParentComponent())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue