From d3c957766828436974381917a4e65ec116e28f6e Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 5 Apr 2018 16:13:16 +0100 Subject: [PATCH] Take the scale factor of a PopupMenu into account when resizing the window in ensureItemIsVisible() --- 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 6c96c875a0..efcf09c880 100644 --- a/modules/juce_gui_basics/menus/juce_PopupMenu.cpp +++ b/modules/juce_gui_basics/menus/juce_PopupMenu.cpp @@ -789,7 +789,7 @@ public: windowPos.getHeight() - (PopupMenuSettings::scrollZone + m->getHeight())), currentY); - auto parentArea = getParentArea (windowPos.getPosition()); + auto parentArea = getParentArea (windowPos.getPosition()) / scaleFactor; auto deltaY = wantedY - currentY; windowPos.setSize (jmin (windowPos.getWidth(), parentArea.getWidth()),