Redisplay info when menu appears so that info adapts its position

This commit is contained in:
Maxime Coste 2016-03-09 23:28:23 +00:00
parent 99ca7ead37
commit 517abf5e74

View File

@ -672,6 +672,10 @@ void NCursesUI::menu_show(ConstArrayView<DisplayLine> items,
auto width = is_prompt ? maxsize.column : min(longest+1, maxsize.column);
m_menu.create({line, anchor.column}, {height, width});
draw_menu();
if (m_info)
info_show(m_info.title, m_info.content,
m_info.anchor, m_info.face, m_info.style);
}
void NCursesUI::menu_select(int selected)