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.
This commit is contained in:
Adrien Destugues 2014-12-02 11:40:14 +01:00
parent 8b46ee25ac
commit a2cb1737d8
1 changed files with 3 additions and 3 deletions

View File

@ -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)