From 34959be22658648d524e14adcaa26e368d988de3 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 7 Dec 2017 12:07:52 +0000 Subject: [PATCH] Fixed a bug where PopupMenus with a scale factor applied were not appearing in the correct position --- modules/juce_gui_basics/menus/juce_PopupMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/menus/juce_PopupMenu.cpp b/modules/juce_gui_basics/menus/juce_PopupMenu.cpp index 60e5439a24..c5aee74593 100644 --- a/modules/juce_gui_basics/menus/juce_PopupMenu.cpp +++ b/modules/juce_gui_basics/menus/juce_PopupMenu.cpp @@ -612,7 +612,7 @@ public: void calculateWindowPos (Rectangle target, const bool alignToRectangle) { - auto parentArea = getParentArea (target.getCentre()); + auto parentArea = getParentArea (target.getCentre()) / scaleFactor; if (parentComponent != nullptr) target = parentComponent->getLocalArea (nullptr, target).getIntersection (parentArea);