Remove scroll debug statements. Add one extra element to browser listview
so that we have a partial item displayed at the bottom and not a blank space.
This commit is contained in:
@@ -176,7 +176,8 @@ func computeVisibleEntries(state *BrowserState) []ui.ListItem {
|
||||
}
|
||||
|
||||
startIndex := state.GetScrollIndex()
|
||||
endIndex := startIndex + state.VisibleCount
|
||||
// show one past the "visible count" for a partial view of the next item
|
||||
endIndex := startIndex + state.VisibleCount + 1
|
||||
if endIndex > state.TotalEntries {
|
||||
endIndex = state.TotalEntries
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user