* Only take the popup marker into account if fShowPopUpMarker is true.
* Automatic whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32173 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
* Stephan Aßmus <[email protected]>
|
||||
*/
|
||||
|
||||
|
||||
#include <BMCPrivate.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -367,8 +368,12 @@ _BMCMenuBar_::MinSize()
|
||||
{
|
||||
BSize size;
|
||||
BMenuBar::GetPreferredSize(&size.width, &size.height);
|
||||
// account for popup indicator + a few pixels margin
|
||||
size.width += 13.0;
|
||||
|
||||
if (fShowPopUpMarker) {
|
||||
// account for popup indicator + a few pixels margin
|
||||
size.width += 13.0;
|
||||
}
|
||||
|
||||
return BLayoutUtils::ComposeSize(ExplicitMinSize(), size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user