diff options
-rw-r--r-- | src/FbTk/Menu.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index 0a7c20a..333a609 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc | |||
@@ -430,6 +430,8 @@ void Menu::updateMenu() { | |||
430 | m_item_w = std::max(iw, m_item_w); | 430 | m_item_w = std::max(iw, m_item_w); |
431 | } | 431 | } |
432 | 432 | ||
433 | // the menu width should be as wide as the widest menu item | ||
434 | w = m_item_w; | ||
433 | 435 | ||
434 | // calculate needed columns | 436 | // calculate needed columns |
435 | m_columns = 0; | 437 | m_columns = 0; |