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)