Move the save panel to the middle of the window as well

This commit is contained in:
John Scipione
2013-04-19 21:25:18 -04:00
parent 9e5508fab4
commit 4122ce2aff
+5
View File
@@ -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;
}