From a984e6c6faa433370386365607b8a6bde8ae325f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 15 Jun 2022 20:41:19 +0300 Subject: more precise button position calculation --- src/core/stdmsg/src/msgdialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/stdmsg') diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index b5012f797d..6cdd734108 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -472,9 +472,10 @@ int CMsgDialog::Resizer(UTILRESIZECONTROL *urc) switch (urc->wId) { case IDOK: urc->rcItem.left = bSend ? urc->dlgNewSize.cx - 64 + 2 : urc->dlgNewSize.cx; + urc->rcItem.right = urc->dlgNewSize.cx; urc->rcItem.top = urc->dlgNewSize.cy - m_iSplitterY + 28; urc->rcItem.bottom = urc->dlgNewSize.cy - 1; - return RD_ANCHORX_RIGHT | RD_ANCHORY_CUSTOM; + return RD_ANCHORX_CUSTOM | RD_ANCHORY_CUSTOM; case IDC_SRMM_LOG: urc->rcItem.top = 2; @@ -541,7 +542,7 @@ LBL_CalcBottom: case IDOK: urc->rcItem.left = bSend ? urc->dlgNewSize.cx - 64 + 2 : urc->dlgNewSize.cx - 1; - urc->rcItem.right = urc->dlgNewSize.cx - 1; + urc->rcItem.right = urc->dlgNewSize.cx; urc->rcItem.top = urc->dlgNewSize.cy - m_iSplitterY + 3; urc->rcItem.bottom = urc->dlgNewSize.cy - 1; return RD_ANCHORX_CUSTOM | RD_ANCHORY_CUSTOM; -- cgit v1.2.3