Corrected inset of upper layout elements.
Now it's the same space on all sides. Use B_USE_DEFAULT_SPACING instead of hardcoded value 10.
This commit is contained in:
@@ -203,19 +203,20 @@ CharacterWindow::CharacterWindow()
|
||||
|
||||
BLayoutBuilder::Group<>(this, B_VERTICAL)
|
||||
.Add(menuBar)
|
||||
.AddGroup(B_HORIZONTAL, 10)
|
||||
.SetInsets(10)
|
||||
.AddGroup(B_VERTICAL, 10)
|
||||
.AddGroup(B_HORIZONTAL, 10)
|
||||
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
||||
.SetInsets(B_USE_DEFAULT_SPACING, 0, B_USE_DEFAULT_SPACING,
|
||||
B_USE_DEFAULT_SPACING)
|
||||
.AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING)
|
||||
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
||||
.Add(fFilterControl)
|
||||
.Add(clearButton)
|
||||
.End()
|
||||
.Add(unicodeScroller)
|
||||
.End()
|
||||
.AddGroup(B_VERTICAL, 10)
|
||||
.AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING)
|
||||
.Add(characterScroller)
|
||||
.Add(fFontSizeSlider)
|
||||
.AddGroup(B_HORIZONTAL, 0)
|
||||
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
||||
.Add(fGlyphView)
|
||||
.Add(fCodeView);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user