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:
parent
bccb185cd9
commit
5e08a23f6c
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue