diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-05 21:11:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-05 21:11:35 +0300 |
commit | d3078120b812849fbc823f90b23fd95f1d286398 (patch) | |
tree | ff271cc38b5e7765f0ecbaa90dc8287c42a2563c /plugins/Scriver/src/msgdialog.cpp | |
parent | 38e9a47650627d9130977b0ff719d5fc8ede6277 (diff) |
Scriver: "entry area min size in lines" setting doesn't work
Diffstat (limited to 'plugins/Scriver/src/msgdialog.cpp')
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index f14ce90112..55609342cd 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -438,6 +438,9 @@ void CSrmmWindow::MessageDialogResize(int w, int h) int toolbarWidth = w;
int messageEditWidth = w - 2;
+ if (hSplitterMinBottom < g_dat.minInputAreaHeight)
+ hSplitterMinBottom = g_dat.minInputAreaHeight;
+
if (!(pdat->flags2 & SMF2_SHOWINFOBAR)) {
infobarHeight = 0;
infobarInnerHeight = 0;
@@ -705,6 +708,8 @@ void CSrmmWindow::OnInitDialog() RECT rc;
GetWindowRect(m_message.GetHwnd(), &rc);
m_minLogBoxHeight = m_minEditBoxHeight = rc.bottom - rc.top;
+ if (m_minEditBoxHeight < g_dat.minInputAreaHeight)
+ m_minEditBoxHeight = g_dat.minInputAreaHeight;
if (m_pParent->iSplitterY == -1)
m_pParent->iSplitterY = m_minEditBoxHeight;
|