* 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:
Axel Dörfler 2009-08-07 07:22:56 +00:00
parent 01592a4057
commit d82ea8abda

View File

@ -7,6 +7,7 @@
* Stephan Aßmus <superstippi@gmx.de> * Stephan Aßmus <superstippi@gmx.de>
*/ */
#include <BMCPrivate.h> #include <BMCPrivate.h>
#include <stdio.h> #include <stdio.h>
@ -367,8 +368,12 @@ _BMCMenuBar_::MinSize()
{ {
BSize size; BSize size;
BMenuBar::GetPreferredSize(&size.width, &size.height); 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); return BLayoutUtils::ComposeSize(ExplicitMinSize(), size);
} }