diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-15 20:41:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-15 20:41:19 +0300 |
commit | a984e6c6faa433370386365607b8a6bde8ae325f (patch) | |
tree | c7971f55c49f91beb97719c846718b9a933b9a6c /src/core | |
parent | aad720ed16008739c07ae7a34b8d52d005958508 (diff) |
more precise button position calculation
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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;
|