Refactor attaching FindPanel to FindWindow

This commit is contained in:
John Scipione 2013-04-26 19:31:37 -04:00
parent 8e8b861c83
commit 56fe9fad23
1 changed files with 2 additions and 3 deletions

View File

@ -226,9 +226,8 @@ FindWindow::FindWindow(const entry_ref* newRef, bool editIfTemplateOnly)
fBackground = new FindPanel(fFile, this, fFromTemplate,
fEditTemplateOnly);
BLayoutBuilder::Group<>(this, B_VERTICAL, 10.0)
.SetInsets(0, 0, 0, 0)
.Add(fBackground);
SetLayout(new BGroupLayout(B_VERTICAL));
GetLayout()->AddView(fBackground);
CenterOnScreen();
}