Refactor attaching FindPanel to FindWindow
This commit is contained in:
@@ -226,9 +226,8 @@ FindWindow::FindWindow(const entry_ref* newRef, bool editIfTemplateOnly)
|
|||||||
|
|
||||||
fBackground = new FindPanel(fFile, this, fFromTemplate,
|
fBackground = new FindPanel(fFile, this, fFromTemplate,
|
||||||
fEditTemplateOnly);
|
fEditTemplateOnly);
|
||||||
BLayoutBuilder::Group<>(this, B_VERTICAL, 10.0)
|
SetLayout(new BGroupLayout(B_VERTICAL));
|
||||||
.SetInsets(0, 0, 0, 0)
|
GetLayout()->AddView(fBackground);
|
||||||
.Add(fBackground);
|
|
||||||
CenterOnScreen();
|
CenterOnScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user