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.
https://juce.com
Other
6.54k stars 1.73k forks source link

[Bug]: showNativeMenu() coordinates are scaled wrong #1346

Open EemilAhonen opened 7 months ago

EemilAhonen commented 7 months ago

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