only one call to updateScrollbar
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 13 Dec 2005 12:57:36 +0000 (12:57 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 13 Dec 2005 12:57:36 +0000 (12:57 +0000)
lib/gui/elistbox.cpp

index 9b876c8c6c58bfbfc3a2759122baa72c8695e7b9..ccd13ff4f51ad628b69b136971159632be2b8059 100644 (file)
@@ -268,7 +268,7 @@ void eListbox::recalcSize()
        m_prev_scrollbar_page=-1;
        m_content->setSize(eSize(size().width(), m_itemheight));
        m_items_per_page = size().height() / m_itemheight;
-       updateScrollBar();
+       moveSelection(justCheck);
 }
 
 void eListbox::setItemHeight(int h)
@@ -342,6 +342,5 @@ void eListbox::entryReset()
        m_top = 0;
        m_selected = 0;
        moveSelection(justCheck);
-       updateScrollBar();
        invalidate();
 }