From 423e822abefbc0f0f178e8e6040e6dbec0ffd115 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Wed, 28 Nov 2007 22:19:24 +0000 Subject: [PATCH] Only enlarge the menus if there's a submenu symbol (regression). Fixes bug #1647. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23018 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Menu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp index 0c214a8f82..ebe119d93b 100644 --- a/src/kits/interface/Menu.cpp +++ b/src/kits/interface/Menu.cpp @@ -1735,7 +1735,8 @@ BMenu::_ComputeColumnLayout(int32 index, bool bestFit, bool moveItems, item->fBounds.bottom = item->fBounds.top + height + fPad.top + fPad.bottom; - width += item->Frame().Height(); + if (item->fSubmenu != NULL) + width += item->Frame().Height(); frame.right = max_c(frame.right, width + fPad.left + fPad.right); frame.bottom = item->fBounds.bottom;