From 9095daa5b9033537978293224115019c6f68686c Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 21 Apr 2006 11:35:57 +0000 Subject: [PATCH] fix for redraw unused space between scrollbar and listbox entries --- lib/gui/elistbox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index f3028ae3..cfb3d5b4 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -329,8 +329,10 @@ int eListbox::event(int event, void *data, void *data2) entryrect.moveBy(ePoint(0, m_itemheight)); } + // clear/repaint empty/unused space between scrollbar and listboxentrys if (m_scrollbar && m_scrollbar->isVisible()) { + style->setStyle(painter, eWindowStyle::styleListboxNormal); painter.clip(eRect(m_scrollbar->position() - ePoint(5,0), eSize(5,m_scrollbar->size().height()))); painter.clear(); painter.clippop(); @@ -340,6 +342,7 @@ int eListbox::event(int event, void *data, void *data2) return 0; } + case evtChangedSize: recalcSize(); return eWidget::event(event, data, data2); -- 2.30.2