Highlight the currently selected item in ArdourDropdown & co

This commit is contained in:
Julien "_FrnchFrgg_" RIVAUD 2019-10-31 14:38:26 +01:00
parent 016db85fa1
commit 3cae11936f
1 changed files with 1 additions and 0 deletions

View File

@ -410,6 +410,7 @@ _position_menu_anchored (int& x, int& y, bool& push_in,
const Label* label_widget = dynamic_cast<const Label*>(i->get_child());
if (label_widget && selected == ((std::string) label_widget->get_label())) {
offset += (i->size_request().height - allocation.get_height()) / 2;
menu->select_item(*i);
break;
}
offset += i->size_request().height;