Background: Make menu fields variable width

This commit is contained in:
John Scipione
2014-04-24 17:14:29 -04:00
parent d154bfb517
commit fd849a28d9
@@ -189,14 +189,21 @@ BackgroundsView::BackgroundsView()
new BMessage(kMsgUpdateColor));
rightbox->AddChild(BLayoutBuilder::Group<>(B_VERTICAL)
.AddGrid(B_USE_DEFAULT_SPACING, B_USE_SMALL_SPACING)
.Add(imageMenuField->CreateLabelLayoutItem(), 0, 0)
.Add(imageMenuField->CreateMenuBarLayoutItem(), 1, 0, 2, 1)
.Add(placementMenuField->CreateLabelLayoutItem(), 0, 1)
.Add(placementMenuField->CreateMenuBarLayoutItem(), 1, 1, 2, 1)
.Add(fIconLabelOutline, 1, 2)
// checkbox only spans one column so that it
// doesn't dictate the width of the menu bars.
.AddGroup(B_HORIZONTAL, 0.0f)
.AddGrid(B_USE_DEFAULT_SPACING, B_USE_SMALL_SPACING)
.Add(imageMenuField->CreateLabelLayoutItem(), 0, 0)
.AddGroup(B_HORIZONTAL, 0.0f, 1, 0)
.Add(imageMenuField->CreateMenuBarLayoutItem(), 0.0f)
.AddGlue()
.End()
.Add(placementMenuField->CreateLabelLayoutItem(), 0, 1)
.AddGroup(B_HORIZONTAL, 0.0f, 1, 1)
.Add(placementMenuField->CreateMenuBarLayoutItem(), 0.0f)
.AddGlue()
.End()
.Add(fIconLabelOutline, 1, 2)
.End()
.AddGlue()
.End()
.AddGlue()
.Add(fPicker)