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:
@@ -1735,7 +1735,8 @@ 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;
|
||||||
|
|
||||||
width += item->Frame().Height();
|
if (item->fSubmenu != NULL)
|
||||||
|
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);
|
||||||
frame.bottom = item->fBounds.bottom;
|
frame.bottom = item->fBounds.bottom;
|
||||||
|
|||||||
Reference in New Issue
Block a user