Browse Source

Take the scale factor of a PopupMenu into account when resizing the window in ensureItemIsVisible()

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

@@ -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()),


Loading…
Cancel
Save