* Changes the height of the text list. * @param height New height in pixels. */
| 430 | * @param height New height in pixels. |
| 431 | */ |
| 432 | void TextList::setHeight(int height) |
| 433 | { |
| 434 | Surface::setHeight(height); |
| 435 | setY(getY()); |
| 436 | int h = std::max(_down->getY() - _up->getY() - _up->getHeight(), 1); |
| 437 | _scrollbar->setHeight(h); |
| 438 | updateVisible(); |
| 439 | } |
| 440 | |
| 441 | /** |
| 442 | * Changes the color of the text in the list. This doesn't change |
no test coverage detected