From f0b9588b824cd7eedf7644cf3538cd7cfc0ebdd3 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 16 Feb 2019 23:40:25 +0100 Subject: [PATCH] - listframe: fix alignment of headerlist to content below * since scrollbar isn't paint over the full height we have to reduce the netto width by a possible scrollbar width Signed-off-by: Thilo Graf --- src/gui/widget/listframe.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/widget/listframe.cpp b/src/gui/widget/listframe.cpp index a163540cf..04010855e 100644 --- a/src/gui/widget/listframe.cpp +++ b/src/gui/widget/listframe.cpp @@ -480,6 +480,7 @@ void CListFrame::refreshHeaderList(void) int x = m_cFrameHeaderListRel.iX + OFFSET_INNER_MID; int y = m_cFrameHeaderListRel.iY + m_nFontHeaderListHeight + OFFSET_INNER_MIN; int net_width = m_cFrameHeaderListRel.iWidth - OFFSET_INNER_SMALL * (m_pLines->rows - 1); + net_width -= m_cFrameScrollRel.iWidth; bool loop = true; for(int row = 0; row < m_pLines->rows && loop == true; row++) {