Skip to content

Commit

Permalink
Fix scrolling at and of grid style button list.
Browse files Browse the repository at this point in the history
Fixes #12892
  • Loading branch information
bennettpeter committed Oct 6, 2016
1 parent 8b49d6c commit 9a5b411
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mythtv/libs/libmythui/mythuibuttonlist.cpp
Expand Up @@ -1335,11 +1335,12 @@ void MythUIButtonList::CalculateButtonPositions(void)
m_columns * m_columns;
}


// Adjusted if last item is deleted
if (((m_itemList.count() - m_topPosition)
< static_cast<int>(m_itemsVisible)) &&
(m_selPosition - (static_cast<int>(m_itemsVisible) - 1)
< m_topPosition))
< m_topPosition) &&
m_columns == 1)
m_topPosition = m_selPosition -
(static_cast<int>(m_itemsVisible) - 1);

Expand Down

0 comments on commit 9a5b411

Please sign in to comment.