Screen prefs: Center Workspaces Columns and Rows
... limiting spinner textbox width instead of growing arbitrarily. Change-Id: I8eaff4e8c43116a7fff51f21e4713b9b71efefb9 Reviewed-on: https://review.haiku-os.org/c/haiku/+/1982 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
69f814cded
commit
4dcc9761a7
|
@ -255,13 +255,17 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
|||
screenBox->AddChild(BLayoutBuilder::Group<>()
|
||||
.AddGroup(B_VERTICAL, B_USE_SMALL_SPACING)
|
||||
.Add(workspaces)
|
||||
.AddGrid(B_USE_DEFAULT_SPACING, B_USE_SMALL_SPACING)
|
||||
// columns
|
||||
.Add(fColumnsControl->CreateLabelLayoutItem(), 0, 0)
|
||||
.Add(fColumnsControl->CreateTextViewLayoutItem(), 1, 0)
|
||||
// rows
|
||||
.Add(fRowsControl->CreateLabelLayoutItem(), 0, 1)
|
||||
.Add(fRowsControl->CreateTextViewLayoutItem(), 1, 1)
|
||||
.AddGroup(B_HORIZONTAL, 0)
|
||||
.AddGlue()
|
||||
.AddGrid(B_USE_DEFAULT_SPACING, B_USE_SMALL_SPACING)
|
||||
// columns
|
||||
.Add(fColumnsControl->CreateLabelLayoutItem(), 0, 0)
|
||||
.Add(fColumnsControl->CreateTextViewLayoutItem(), 1, 0)
|
||||
// rows
|
||||
.Add(fRowsControl->CreateLabelLayoutItem(), 0, 1)
|
||||
.Add(fRowsControl->CreateTextViewLayoutItem(), 1, 1)
|
||||
.End()
|
||||
.AddGlue()
|
||||
.End()
|
||||
.End()
|
||||
.View());
|
||||
|
|
Loading…
Reference in New Issue