JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

[Bug]: showNativeMenu() coordinates are scaled wrong

Open EemilAhonen opened this issue 1 year ago • 0 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

  • [X] I agree to follow the Code of Conduct

EemilAhonen avatar Feb 08 '24 08:02 EemilAhonen