1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

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

This commit is contained in:
ed 2017-12-07 12:07:52 +00:00
parent 4800216b82
commit 34959be226

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);