aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-13 12:57:36 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-13 12:57:36 +0000
commitb682e464035635927e72142065f0332d58ea8fcb (patch)
tree273ca6207eb14112a045f1816462d190702ab4cc /lib
parentce507f3fbf0e8491aaea32e1322996f23ab316f2 (diff)
downloadenigma2-b682e464035635927e72142065f0332d58ea8fcb.tar.gz
enigma2-b682e464035635927e72142065f0332d58ea8fcb.zip
only one call to updateScrollbar
Diffstat (limited to 'lib')
-rw-r--r--lib/gui/elistbox.cpp3
1 files changed, 1 insertions, 2 deletions
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();
}