Skip to content
Snippets Groups Projects
  • Deucе's avatar
    12e41d7c
    Ok, that last one was wrong... sue me. · 12e41d7c
    Deucе authored
    So here's what we're doing now... we set bar so that the first item
    shown in the menu is the lowest index possible that still shows cur.
    bar is therefore calculated as the displayed item count minus the
    distance from cur to the end of the list.
    
    Yeah, that's the easiest way to explain it.
    12e41d7c
    History
    Ok, that last one was wrong... sue me.
    Deucе authored
    So here's what we're doing now... we set bar so that the first item
    shown in the menu is the lowest index possible that still shows cur.
    bar is therefore calculated as the displayed item count minus the
    distance from cur to the end of the list.
    
    Yeah, that's the easiest way to explain it.