X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ce507f3fbf0e8491aaea32e1322996f23ab316f2..e1ea45e881637c29c87677ef0cb15fcc600cf502:/lib/gui/elistbox.cpp?ds=sidebyside diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index 9b876c8c..013a3103 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) @@ -333,15 +333,17 @@ void eListbox::entryChanged(int index) } } -void eListbox::entryReset() +void eListbox::entryReset(bool cursorHome) { m_content_changed=true; m_prev_scrollbar_page=-1; - if (m_content) - m_content->cursorHome(); - m_top = 0; - m_selected = 0; + if ( cursorHome ) + { + if (m_content) + m_content->cursorHome(); + m_top = 0; + m_selected = 0; + } moveSelection(justCheck); - updateScrollBar(); invalidate(); }