mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
PopupMenu: Add withMousePosition helper function to Options
This commit is contained in:
parent
84c5627b42
commit
ab966fb499
4 changed files with 24 additions and 10 deletions
|
|
@ -1713,7 +1713,8 @@ private:
|
|||
if (e.mods.isRightButtonDown())
|
||||
if (auto* c = editor.getHostContext())
|
||||
if (auto menuInfo = c->getContextMenuForParameterIndex (¶m))
|
||||
menuInfo->getEquivalentPopupMenu().showMenuAsync ({});
|
||||
menuInfo->getEquivalentPopupMenu().showMenuAsync (PopupMenu::Options{}.withTargetComponent (this)
|
||||
.withMousePosition());
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue