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 f3028ae3a94ce8e8bed48ade449f928186bba782..cfb3d5b456a90280f9f631d3601bdba8fcffc5d3 100644 (file)
@@ -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);