Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
EemilAhonen opened this issue Feb 8, 2024 · 0 comments
Open
1 task done

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

EemilAhonen opened this issue Feb 8, 2024 · 0 comments

Comments

@EemilAhonen
Copy link

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
@EemilAhonen EemilAhonen changed the title [Bug]: [Bug]: showNativeMenu() coordinates are scaled wrong Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant