Set the initial rect to 0 and center the window on screen

This commit is contained in:
John Scipione
2013-04-27 19:40:18 -04:00
parent a12df99d53
commit 8e8b861c83
+2 -1
View File
@@ -89,7 +89,7 @@ All rights reserved.
const char* kAllMimeTypes = "mime/ALLTYPES";
const BRect kInitialRect(100, 100, 0, 0);
const BRect kInitialRect(0, 0, 0, 0);
const int32 kInitialAttrModeWindowHeight = 140;
const int32 kIncrementPerAttribute = 30;
const float kMoreOptionsDelta = 20;
@@ -229,6 +229,7 @@ FindWindow::FindWindow(const entry_ref* newRef, bool editIfTemplateOnly)
BLayoutBuilder::Group<>(this, B_VERTICAL, 10.0)
.SetInsets(0, 0, 0, 0)
.Add(fBackground);
CenterOnScreen();
}