Position Manage menu properly
This commit is contained in:
parent
bed441d651
commit
22cb98d411
|
@ -3249,8 +3249,9 @@ void EffectUIHost::OnMenu(wxCommandEvent & WXUNUSED(evt))
|
|||
|
||||
menu->Append(0, _("About"), sub);
|
||||
|
||||
wxRect r = FindWindow(kMenuID)->GetParent()->GetRect();
|
||||
PopupMenu(menu, wxPoint(r.GetLeft(), r.GetBottom()));
|
||||
wxWindow *btn = FindWindow(kMenuID);
|
||||
wxRect r = btn->GetRect();
|
||||
btn->PopupMenu(menu, r.GetLeft(), r.GetBottom());
|
||||
|
||||
delete menu;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue