From d0ddd796b2540fdd66be1bb9797f09f338d38fd8 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 6 Jun 2013 12:37:01 -0400 Subject: [PATCH] Backgrounds: Update spacing around preview. So that there isn't extra space at the bottom, only between the monitor and the X and Y text controls, and the insets. --- src/preferences/backgrounds/BackgroundsView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/preferences/backgrounds/BackgroundsView.cpp b/src/preferences/backgrounds/BackgroundsView.cpp index 2e3f6a1f09..5e9118c8f0 100644 --- a/src/preferences/backgrounds/BackgroundsView.cpp +++ b/src/preferences/backgrounds/BackgroundsView.cpp @@ -105,7 +105,7 @@ BackgroundsView::BackgroundsView() previewBox->AddChild(BLayoutBuilder::Group<>() .AddGlue() - .AddGroup(B_VERTICAL, be_control_look->DefaultItemSpacing() * 2) + .AddGroup(B_VERTICAL, 0) .AddGroup(B_HORIZONTAL, 0) .AddGlue() .AddGrid(0, 0, 1) @@ -121,7 +121,8 @@ BackgroundsView::BackgroundsView() .End() .AddGlue() .End() - .AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING) + .AddStrut(be_control_look->DefaultItemSpacing() * 2) + .AddGroup(B_HORIZONTAL) .Add(fXPlacementText) .Add(fYPlacementText) .End()