UI: Make popups transition their button.

This commit is contained in:
Unknown W. Brackets 2017-03-21 18:27:57 -07:00
parent 4fb8ac96ce
commit 07d2b4fb46
7 changed files with 57 additions and 11 deletions

View file

@ -266,6 +266,8 @@ UI::EventReturn ControlMappingScreen::OnAutoConfigure(UI::EventParams &params) {
}
I18NCategory *km = GetI18NCategory("KeyMapping");
ListPopupScreen *autoConfList = new ListPopupScreen(km->T("Autoconfigure for device"), items, -1);
if (params.v)
autoConfList->SetPopupOrigin(params.v);
screenManager()->push(autoConfList);
return UI::EVENT_DONE;
}