* Updates the amount of visible rows according to the * current list and font size. */
| 840 | * current list and font size. |
| 841 | */ |
| 842 | void TextList::updateVisible() |
| 843 | { |
| 844 | _visibleRows = 0; |
| 845 | for (int y = 0; y < getHeight(); y += _font->getHeight() + _font->getSpacing()) |
| 846 | { |
| 847 | _visibleRows++; |
| 848 | } |
| 849 | updateArrows(); |
| 850 | } |
| 851 | |
| 852 | /** |
| 853 | * Changes whether the list can be scrolled. |
nothing calls this directly
no test coverage detected