restore editor window position when open

This commit is contained in:
henrypp committed 2022-02-06 04:45:59 +06:00
1 parent 6dcbd2c959
commit 0263aadac4
1 file changed
+2 -2
+2 -2
View File
@@ -1617,10 +1617,10 @@ INT_PTR CALLBACK EditorProc (
// initialize layout
_r_layout_initializemanager (&context->layout_manager, hwnd);
_r_window_restoreposition (hwnd, L"editor");
_r_wnd_center (hwnd, GetParent (hwnd));
_r_window_restoreposition (hwnd, L"editor");
// set window title
SetWindowText (hwnd, title);