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
This commit is contained in:
Stefano Ceccherini
2007-11-28 22:19:24 +00:00
parent b26de2e398
commit 423e822abe
+2 -1
View File
@@ -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;