From: Andreas Monzner Date: Tue, 13 Dec 2005 12:57:36 +0000 (+0000) Subject: only one call to updateScrollbar X-Git-Tag: 2.6.0~4720 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/b682e464035635927e72142065f0332d58ea8fcb only one call to updateScrollbar --- diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index 9b876c8c..ccd13ff4 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -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(); }