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
+1
View File
@@ -1735,6 +1735,7 @@ BMenu::_ComputeColumnLayout(int32 index, bool bestFit, bool moveItems,
item->fBounds.bottom = item->fBounds.top + height + fPad.top item->fBounds.bottom = item->fBounds.top + height + fPad.top
+ fPad.bottom; + fPad.bottom;
if (item->fSubmenu != NULL)
width += item->Frame().Height(); width += item->Frame().Height();
frame.right = max_c(frame.right, width + fPad.left + fPad.right); frame.right = max_c(frame.right, width + fPad.left + fPad.right);