From fb102712c9165b849ca75a71c21d87ae72d547b7 Mon Sep 17 00:00:00 2001
From: Alex Wilson <yourpalal2@gmail.com>
Date: Mon, 22 Jul 2013 02:34:17 +0000
Subject: [PATCH] Fix layout issue in Backgrounds preflet.
Add an extra column to the grid layout so that the menu fields are free
to be much bigger than the checkbox.
closes #9882
---
src/preferences/backgrounds/BackgroundsView.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/preferences/backgrounds/BackgroundsView.cpp b/src/preferences/backgrounds/BackgroundsView.cpp
index 9e47910..5312836 100644
a
|
b
|
BackgroundsView::BackgroundsView()
|
191 | 191 | rightbox->AddChild(BLayoutBuilder::Group<>(B_VERTICAL, B_USE_DEFAULT_SPACING) |
192 | 192 | .AddGrid(B_USE_DEFAULT_SPACING, B_USE_SMALL_SPACING) |
193 | 193 | .Add(imageMenuField->CreateLabelLayoutItem(), 0, 0) |
194 | | .Add(imageMenuField->CreateMenuBarLayoutItem(), 1, 0) |
| 194 | .Add(imageMenuField->CreateMenuBarLayoutItem(), 1, 0, 2, 1) |
195 | 195 | .Add(placementMenuField->CreateLabelLayoutItem(), 0, 1) |
196 | | .Add(placementMenuField->CreateMenuBarLayoutItem(), 1, 1) |
| 196 | .Add(placementMenuField->CreateMenuBarLayoutItem(), 1, 1, 2, 1) |
197 | 197 | .Add(fIconLabelOutline, 1, 2) |
| 198 | // checkbox only spans one column so that it |
| 199 | // doesn't dictate the width of the menu bars. |
198 | 200 | .End() |
199 | 201 | .AddGlue() |
200 | 202 | .Add(fPicker) |