summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-04-03 12:35:11 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-04-03 12:35:11 +0300
commit62cb48be341f443dbe356d37fb6d708167898ded (patch)
treee316cc5d7205ae7337a5f9c5f912a3ccdf350dba /plugins/Scriver/src
parentfa5c1b20964e669cf50de378d02ed72c5f9d789b (diff)
fixes #788 (minimize/restore wipes out vertical scroller position)
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r--plugins/Scriver/src/chat_window.cpp3
-rw-r--r--plugins/Scriver/src/msgdialog.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Scriver/src/chat_window.cpp b/plugins/Scriver/src/chat_window.cpp
index 02ce2d60ab..288fbdf6ff 100644
--- a/plugins/Scriver/src/chat_window.cpp
+++ b/plugins/Scriver/src/chat_window.cpp
@@ -916,7 +916,8 @@ INT_PTR CChatRoomDlg::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
if (wParam == SIZE_RESTORED || wParam == SIZE_MAXIMIZED) {
GetClientRect(m_hwnd, &rc);
- MessageDialogResize(rc.right - rc.left, rc.bottom - rc.top);
+ if (rc.right && rc.bottom)
+ MessageDialogResize(rc.right, rc.bottom);
}
break;
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp
index 3afb775d89..03099767dd 100644
--- a/plugins/Scriver/src/msgdialog.cpp
+++ b/plugins/Scriver/src/msgdialog.cpp
@@ -1406,7 +1406,8 @@ INT_PTR CSrmmWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
if (wParam == SIZE_RESTORED || wParam == SIZE_MAXIMIZED) {
RECT rc;
GetClientRect(m_hwnd, &rc);
- MessageDialogResize(rc.right - rc.left, rc.bottom - rc.top);
+ if (rc.right && rc.bottom)
+ MessageDialogResize(rc.right, rc.bottom);
}
return TRUE;