From a2cb1737d8fda3e34f1701638a45bda7fa36c546 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 2 Dec 2014 11:40:14 +0100 Subject: [PATCH] Screen prefs: force weight of the two boxes Depending on the locale and string length the layout could leave only a small part of the window for the rightmost part, which is the important thing. Force the weight of each side so we have a more balanced window. --- src/preferences/screen/ScreenWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/preferences/screen/ScreenWindow.cpp b/src/preferences/screen/ScreenWindow.cpp index ed840f7f18..511ed9ac26 100644 --- a/src/preferences/screen/ScreenWindow.cpp +++ b/src/preferences/screen/ScreenWindow.cpp @@ -515,7 +515,7 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings) fApplyButton->SetEnabled(false); BLayoutBuilder::Group<>(outerControlsView) .AddGlue() - .AddGroup(B_HORIZONTAL) + .AddGroup(B_HORIZONTAL) .AddGlue() .Add(fApplyButton); @@ -525,11 +525,11 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings) BLayoutBuilder::Group<>(this, B_VERTICAL, B_USE_DEFAULT_SPACING) .AddGroup(B_HORIZONTAL) - .AddGroup(B_VERTICAL, 0) + .AddGroup(B_VERTICAL, 0, 1) .AddStrut(floorf(controlsBox->TopBorderOffset()) - 1) .Add(screenBox) .End() - .Add(controlsBox) + .Add(controlsBox, 2) .End() .AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING) .Add(fRevertButton)