ncurses: When hiding the menu, recompute the info position

This commit is contained in:
Maxime Coste 2017-04-04 08:36:21 +01:00
parent 6ad2f721dd
commit 94145f2a89

View File

@ -769,6 +769,10 @@ void NCursesUI::menu_hide()
mark_dirty(m_menu);
m_menu.destroy();
m_dirty = true;
// Recompute info as it does not have to avoid the menu anymore
if (m_info)
info_show(m_info.title, m_info.content, m_info.anchor, m_info.face, m_info.style);
}
static DisplayCoord compute_needed_size(StringView str)