From cfcca9f54aa82f7cd292554d392f22965880c72d Mon Sep 17 00:00:00 2001 From: Don HO Date: Tue, 23 Jul 2019 01:59:30 +0200 Subject: [PATCH] UI position tuning Close #5935 --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 2 +- PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 7cac8a3f2..03072ca95 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -835,7 +835,7 @@ INT_PTR CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM _countInSelFramePos.left = _replaceInSelFramePos.left = p.x; _countInSelFramePos.top = _replaceInSelFramePos.top = p.y; - _countInSelFramePos.top = countP.y - 14; + _countInSelFramePos.top = countP.y - 9; NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance())->getNativeLangSpeaker(); generic_string searchButtonTip = pNativeSpeaker->getLocalizedStrFromID("shift-change-direction-tip", TEXT("Use Shift+Enter to search in the opposite direction.")); diff --git a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp index 2e83a73f4..5de72640d 100644 --- a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp +++ b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp @@ -292,8 +292,8 @@ void PluginsAdminDlg::create(int dialogID, bool isRTL, bool msgDestParent) HWND hResearchLabel = ::GetDlgItem(_hSelf, IDC_PLUGINADM_SEARCH_STATIC); RECT researchLabelRect; ::GetClientRect(hResearchLabel, &researchLabelRect); - researchLabelRect.left = rect.left; - researchLabelRect.top = topMarge + 2; + researchLabelRect.left = rect.left + 10; + researchLabelRect.top = topMarge + 4; ::MoveWindow(hResearchLabel, researchLabelRect.left, researchLabelRect.top, researchLabelRect.right, researchLabelRect.bottom, TRUE); ::InvalidateRect(hResearchLabel, nullptr, TRUE); @@ -301,7 +301,7 @@ void PluginsAdminDlg::create(int dialogID, bool isRTL, bool msgDestParent) RECT researchEditRect; ::GetClientRect(hResearchEdit, &researchEditRect); researchEditRect.left = researchLabelRect.right + marge; - researchEditRect.top = topMarge; + researchEditRect.top = topMarge + 2; ::MoveWindow(hResearchEdit, researchEditRect.left, researchEditRect.top, researchEditRect.right, researchEditRect.bottom, TRUE); ::InvalidateRect(hResearchEdit, nullptr, TRUE);