Fix style violations I've commited in r38207 and r38251, the first pointed out by Ingo <- thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38252 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a881dd4a37
commit
1eeda2bd42
@ -110,20 +110,20 @@ AppearancePrefView::AppearancePrefView(const char* name,
|
||||
|
||||
BLayoutBuilder::Group<>(this)
|
||||
.SetInsets(5, 5, 5, 5)
|
||||
.AddGrid(5, 5)
|
||||
.Add(fFont->CreateLabelLayoutItem(), 0, 0)
|
||||
.Add(fFont->CreateMenuBarLayoutItem(), 1, 0)
|
||||
.Add(fFontSize->CreateLabelLayoutItem(), 0, 1)
|
||||
.Add(fFontSize->CreateMenuBarLayoutItem(), 1, 1)
|
||||
.Add(fColorSchemaField->CreateLabelLayoutItem(), 0, 2)
|
||||
.Add(fColorSchemaField->CreateMenuBarLayoutItem(), 1, 2)
|
||||
.Add(fColorField->CreateLabelLayoutItem(), 0, 3)
|
||||
.Add(fColorField->CreateMenuBarLayoutItem(), 1, 3)
|
||||
.End()
|
||||
.AddGlue()
|
||||
.Add(fColorControl = new BColorControl(BPoint(10, 10),
|
||||
B_CELLS_32x8, 8.0, "", new BMessage(MSG_COLOR_CHANGED)))
|
||||
.Add(fWarnOnExit);
|
||||
.AddGrid(5, 5)
|
||||
.Add(fFont->CreateLabelLayoutItem(), 0, 0)
|
||||
.Add(fFont->CreateMenuBarLayoutItem(), 1, 0)
|
||||
.Add(fFontSize->CreateLabelLayoutItem(), 0, 1)
|
||||
.Add(fFontSize->CreateMenuBarLayoutItem(), 1, 1)
|
||||
.Add(fColorSchemaField->CreateLabelLayoutItem(), 0, 2)
|
||||
.Add(fColorSchemaField->CreateMenuBarLayoutItem(), 1, 2)
|
||||
.Add(fColorField->CreateLabelLayoutItem(), 0, 3)
|
||||
.Add(fColorField->CreateMenuBarLayoutItem(), 1, 3)
|
||||
.End()
|
||||
.AddGlue()
|
||||
.Add(fColorControl = new BColorControl(BPoint(10, 10),
|
||||
B_CELLS_32x8, 8.0, "", new BMessage(MSG_COLOR_CHANGED)))
|
||||
.Add(fWarnOnExit);
|
||||
|
||||
fFont->SetAlignment(B_ALIGN_RIGHT);
|
||||
fFontSize->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
@ -958,8 +958,8 @@ BSplitLayout::_LayoutItem(BLayoutItem* item, ItemLayoutInfo* info)
|
||||
item->AlignInFrame(info->layoutFrame);
|
||||
|
||||
// if the item became visible, we need to update its internal layout
|
||||
if (visibilityChanged && (fOrientation != B_HORIZONTAL
|
||||
|| !HasHeightForWidth())) {
|
||||
if (visibilityChanged &&
|
||||
(fOrientation != B_HORIZONTAL || !HasHeightForWidth())) {
|
||||
item->Relayout(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user