mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
*neutrino: fix scrollbar movement on selected last item
This effect is observable in moviebrowser. Scrollbar don't move, if you selected the last item. This should fix this. see also: http://www.dbox2-tuning.net/forum/viewtopic.php?p=379439#p379439 thx Gaucho316 for patch git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1498 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -521,9 +521,7 @@ void CListFrame::scrollLineDown(const int lines)
|
||||
refreshLine(m_nSelectedLine);
|
||||
}
|
||||
} else {
|
||||
m_nCurrentPage = 0;
|
||||
m_nCurrentLine = m_nSelectedLine = 0;
|
||||
refreshList();
|
||||
setSelectedLine(0);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -546,9 +544,6 @@ void CListFrame::scrollLineUp(const int lines)
|
||||
refreshLine(m_nSelectedLine);
|
||||
}
|
||||
} else if(m_nSelectedLine == 0) {
|
||||
//m_nCurrentPage = m_nNrOfPages - 1;
|
||||
//m_nCurrentLine = m_nSelectedLine = m_nNrOfLines - 1;
|
||||
//refresh();
|
||||
setSelectedLine(m_nNrOfLines - 1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user