summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-23 22:08:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-23 22:08:14 +0300
commitcd7e3fdb79d91775151cff56de4525343e73cdb4 (patch)
tree216edd01a8d0838541725c56dd7799cb974aaab6
parent8e9ae3e26313af8914379a186389d0e0b88bbce1 (diff)
Scriver: button resizer to use the avatar presence & position
-rw-r--r--plugins/Scriver/src/utils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Scriver/src/utils.cpp b/plugins/Scriver/src/utils.cpp
index 949dcbd665..46d2874758 100644
--- a/plugins/Scriver/src/utils.cpp
+++ b/plugins/Scriver/src/utils.cpp
@@ -444,8 +444,7 @@ void SetButtonsPos(HWND hwndDlg, bool bShow)
ScreenToClient(hwndDlg, &pt);
pt.y -= 20;
- GetClientRect(hwndDlg, &rc);
- int iLeftX = 2, iRightX = rc.right - 2;
+ int iLeftX = 2, iRightX = rc.right - rc.left - 2;
int iGap = db_get_b(NULL, SRMMMOD, "ButtonsBarGap", 1);
CustomButtonData *cbd;