juce-framework / JUCE

JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, LV2 and AAX audio plug-ins.

Home Page:https://juce.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: showNativeMenu() coordinates are scaled wrong

EemilAhonen opened this issue · comments

Detailed steps on how to reproduce the bug

Call this code in the editor: getHostContext()->getContextMenuForParameter(SOME PARAMETER VALUE HERE)->showNativeMenu(getBounds().bottomRight());

The coordinates from getBounds().bottomRight() are correct, so the bug is somewhere in the showNativeMenu method

What is the expected behaviour?

Expected: Native menu opens at the bottom right corner.
Reality: Native menu opens at the center of the plugin window

Operating systems

macOS

What versions of the operating systems?

Sonoma 14.0

Architectures

ARM

Stacktrace

No response

Plug-in formats (if applicable)

VST3

Plug-in host applications (DAWs) (if applicable)

FL Studio Build 3470

Testing on the develop branch

I have not tested against the develop branch

Code of Conduct

  • I agree to follow the Code of Conduct