window: add more padding to patch description

This commit is contained in:
itsmattkc 2022-04-01 16:51:40 -07:00
parent 29aa667e2d
commit 3ece1f54f7

View file

@ -176,8 +176,8 @@ void CRebuilderWindow::OnSize(UINT type, int width, int height)
int w = inner.right - inner.left; int w = inner.right - inner.left;
h = m_nFontHeight*4; h = m_nFontHeight*5;
int patchDescY = inner.bottom - h; int patchDescY = inner.bottom - h - padding;
m_cTabCtrl.GetPatchDesc().SetWindowPos(NULL, inner.left, patchDescY, w, h, 0); m_cTabCtrl.GetPatchDesc().SetWindowPos(NULL, inner.left, patchDescY, w, h, 0);
h = m_nFontHeight; 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); m_cTabCtrl.GetPatchTitle().SetWindowPos(NULL, inner.left, patchDescY, w, h, 0);
// Consume remaining space with patch grid // 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); m_cTabCtrl.GetPatchGrid().SetWindowPos(NULL, inner.left, inner.top, w, h, 0);
h = inner.bottom - inner.top; h = inner.bottom - inner.top;