From 3ece1f54f7cf3bb116b740ecb21cedd7ddd85f77 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Fri, 1 Apr 2022 16:51:40 -0700 Subject: [PATCH] window: add more padding to patch description --- src/window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/window.cpp b/src/window.cpp index da29f3c..fcd0094 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -176,8 +176,8 @@ void CRebuilderWindow::OnSize(UINT type, int width, int height) int w = inner.right - inner.left; - h = m_nFontHeight*4; - int patchDescY = inner.bottom - h; + h = m_nFontHeight*5; + int patchDescY = inner.bottom - h - padding; m_cTabCtrl.GetPatchDesc().SetWindowPos(NULL, inner.left, patchDescY, w, h, 0); h = m_nFontHeight; @@ -185,7 +185,7 @@ void CRebuilderWindow::OnSize(UINT type, int width, int height) m_cTabCtrl.GetPatchTitle().SetWindowPos(NULL, inner.left, patchDescY, w, h, 0); // Consume remaining space with patch grid - h = patchDescY - inner.top; + h = patchDescY - inner.top - padding; m_cTabCtrl.GetPatchGrid().SetWindowPos(NULL, inner.left, inner.top, w, h, 0); h = inner.bottom - inner.top;