From 8e8b861c83ab6beec20ea7323c6fa88185f2aa9e Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 26 Apr 2013 19:25:34 -0400 Subject: [PATCH] Set the initial rect to 0 and center the window on screen --- src/kits/tracker/FindPanel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/tracker/FindPanel.cpp b/src/kits/tracker/FindPanel.cpp index c1fd29b2dd..c9db671a28 100644 --- a/src/kits/tracker/FindPanel.cpp +++ b/src/kits/tracker/FindPanel.cpp @@ -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(); }