reposition visible submenus when changing style

a fixed position of the style menu won't help (the menu geometry changes
*because* the item geometries do) - warping the pointer would likely be
possible, but warping the pointer is cc. "evil"

BUG: 715
This commit is contained in:
Thomas Lübking 2016-07-25 22:04:22 +02:00 committed by Mathias Gumz
parent bccb185cd9
commit 5e08a23f6c

View file

@ -1269,8 +1269,11 @@ static void rec_reconfigMenu(FbTk::Menu *menu) {
return;
s_seenMenus.push_back(menu);
menu->reconfigure();
for (size_t i = 0; i < menu->numberOfItems(); ++i)
for (size_t i = 0; i < menu->numberOfItems(); ++i) {
rec_reconfigMenu(menu->find(i)->submenu());
if (menu->find(i)->submenu() && menu->find(i)->submenu()->isVisible())
menu->drawSubmenu(i);
}
}