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:
parent
4800216b82
commit
34959be226
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue