Redisplay info when menu appears so that info adapts its position
This commit is contained in:
parent
99ca7ead37
commit
517abf5e74
|
@ -672,6 +672,10 @@ void NCursesUI::menu_show(ConstArrayView<DisplayLine> items,
|
||||||
auto width = is_prompt ? maxsize.column : min(longest+1, maxsize.column);
|
auto width = is_prompt ? maxsize.column : min(longest+1, maxsize.column);
|
||||||
m_menu.create({line, anchor.column}, {height, width});
|
m_menu.create({line, anchor.column}, {height, width});
|
||||||
draw_menu();
|
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)
|
void NCursesUI::menu_select(int selected)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user