fix for redraw unused space between scrollbar and listbox entries
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 21 Apr 2006 11:35:57 +0000 (11:35 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 21 Apr 2006 11:35:57 +0000 (11:35 +0000)
lib/gui/elistbox.cpp

index f3028ae..cfb3d5b 100644 (file)
@@ -329,8 +329,10 @@ int eListbox::event(int event, void *data, void *data2)
                        entryrect.moveBy(ePoint(0, m_itemheight));
                }
 
                        entryrect.moveBy(ePoint(0, m_itemheight));
                }
 
+               // clear/repaint empty/unused space between scrollbar and listboxentrys
                if (m_scrollbar && m_scrollbar->isVisible())
                {
                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();
                        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;
        }
 
                return 0;
        }
+
        case evtChangedSize:
                recalcSize();
                return eWidget::event(event, data, data2);
        case evtChangedSize:
                recalcSize();
                return eWidget::event(event, data, data2);