From 4fe4dcf947abde59b084345697c723fb82053bc1 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Sun, 2 Jun 2013 17:16:23 -0400 Subject: [PATCH] Backgrounds: Line up BBox top borders --- src/preferences/backgrounds/BackgroundsView.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/preferences/backgrounds/BackgroundsView.cpp b/src/preferences/backgrounds/BackgroundsView.cpp index 7718482664..801d5906a3 100644 --- a/src/preferences/backgrounds/BackgroundsView.cpp +++ b/src/preferences/backgrounds/BackgroundsView.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include @@ -211,7 +212,12 @@ BackgroundsView::BackgroundsView() AddChild(BLayoutBuilder::Group<>(B_VERTICAL) .AddGroup(B_HORIZONTAL) - .Add(previewBox) + .AddGroup(B_VERTICAL, 0) + .Add(BSpaceLayoutItem::CreateVerticalStrut( + ceilf(rightbox->TopBorderOffset() / 2 + - previewBox->TopBorderOffset() / 2) + 1)) + .Add(previewBox) + .End() .Add(rightbox) .End() .AddGroup(B_HORIZONTAL)