Fix BMenuBar width
This commit is contained in:
@@ -2196,9 +2196,9 @@ BMenu::_ComputeLayout(int32 index, bool bestFit, bool moveItems,
|
|||||||
if (dynamic_cast<_BMCMenuBar_*>(this) != NULL)
|
if (dynamic_cast<_BMCMenuBar_*>(this) != NULL)
|
||||||
size.width = Bounds().Width() - fPad.right;
|
size.width = Bounds().Width() - fPad.right;
|
||||||
else if (Parent() != NULL)
|
else if (Parent() != NULL)
|
||||||
size.width = Parent()->Frame().Width() + 1;
|
size.width = Parent()->Frame().Width();
|
||||||
else if (Window() != NULL)
|
else if (Window() != NULL)
|
||||||
size.width = Window()->Frame().Width() + 1;
|
size.width = Window()->Frame().Width();
|
||||||
else
|
else
|
||||||
size.width = Bounds().Width();
|
size.width = Bounds().Width();
|
||||||
} else
|
} else
|
||||||
|
|||||||
Reference in New Issue
Block a user