Browse Source

Scale mouse position when calculating parent area for PopupMenu window

tags/2021-05-28
ed 5 years ago
parent
commit
c8c14516d5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/menus/juce_PopupMenu.cpp

+ 1
- 1
modules/juce_gui_basics/menus/juce_PopupMenu.cpp View File

@@ -595,7 +595,7 @@ struct MenuWindow : public Component
if (relativeTo != nullptr)
targetPoint = relativeTo->localPointToGlobal (targetPoint);
auto parentArea = Desktop::getInstance().getDisplays().findDisplayForPoint (targetPoint)
auto parentArea = Desktop::getInstance().getDisplays().findDisplayForPoint (targetPoint * scaleFactor)
#if JUCE_MAC || JUCE_ANDROID
.userArea;
#else


Loading…
Cancel
Save