Move the save panel to the middle of the window as well
This commit is contained in:
@@ -850,6 +850,11 @@ StyledEditWindow::SaveAs(BMessage* message)
|
|||||||
if (message != NULL)
|
if (message != NULL)
|
||||||
fSavePanel->SetMessage(message);
|
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();
|
fSavePanel->Show();
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user