| 35 | |
| 36 | |
| 37 | void ScrollWidget::scrollTo(math::Rect r) { |
| 38 | math::Rect bound = math::Rect::fromMinMax(r.getBottomRight().minus(box.size), r.pos); |
| 39 | offset = offset.clampSafe(bound); |
| 40 | } |
| 41 | |
| 42 | |
| 43 | math::Rect ScrollWidget::getContainerOffsetBound() { |
no test coverage detected