In case the BMenu is inside a BMenuField, override the items width to

span over the BMenuField's width. Note that if the BMenu is already
wider, we don't shrink it, at least for now.
Fixes #5015.
This commit is contained in:
Stefano Ceccherini
2013-04-13 10:31:20 +02:00
parent c57854947d
commit 501201761b
2 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ private:
bool moveItems, float* width,
float* height);
void _ComputeColumnLayout(int32 index, bool bestFit,
bool moveItems, BRect& outRect);
bool moveItems, BRect* override, BRect& outRect);
void _ComputeRowLayout(int32 index, bool bestFit,
bool moveItems, BRect& outRect);
void _ComputeMatrixLayout(BRect& outRect);