From 4122ce2aff2d004bd1570d9aa680849cbaf10766 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 19 Apr 2013 21:25:18 -0400 Subject: [PATCH] Move the save panel to the middle of the window as well --- src/apps/stylededit/StyledEditWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apps/stylededit/StyledEditWindow.cpp b/src/apps/stylededit/StyledEditWindow.cpp index 9d45aa5665..cf0e856537 100644 --- a/src/apps/stylededit/StyledEditWindow.cpp +++ b/src/apps/stylededit/StyledEditWindow.cpp @@ -850,6 +850,11 @@ StyledEditWindow::SaveAs(BMessage* message) if (message != NULL) fSavePanel->SetMessage(message); + // Move the save panel to the middle of the window + fSavePanel->Window()->MoveTo(Frame().LeftTop().x + Frame().Width() / 2 + - fSavePanel->Window()->Frame().Width() / 2, + Frame().LeftTop().y + Frame().Height() / 4); + fSavePanel->Show(); return B_OK; }