Browse Source

Fixed a bug where PopupMenus with a scale factor applied were not appearing in the correct position

tags/2021-05-28
ed 7 years ago
parent
commit
34959be226
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

@@ -612,7 +612,7 @@ public:
void calculateWindowPos (Rectangle<int> 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);


Loading…
Cancel
Save