SetFirst set the position of first visible if possible
(pos int)
| 179 | |
| 180 | // SetFirst set the position of first visible if possible |
| 181 | func (s *ItemScroller) SetFirst(pos int) { |
| 182 | |
| 183 | if pos >= 0 && pos <= s.maxFirst() { |
| 184 | s.first = pos |
| 185 | s.recalc() |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | // ScrollDown scrolls the list down one item if possible |
| 190 | func (s *ItemScroller) ScrollDown() { |