| 507 | } |
| 508 | |
| 509 | void ScrollView::updateInset() |
| 510 | { |
| 511 | if (this->getContainer() != nullptr) |
| 512 | { |
| 513 | _maxInset = this->maxContainerOffset(); |
| 514 | _maxInset.set(_maxInset.x + _viewSize.width * INSET_RATIO, _maxInset.y + _viewSize.height * INSET_RATIO); |
| 515 | _minInset = this->minContainerOffset(); |
| 516 | _minInset.set(_minInset.x - _viewSize.width * INSET_RATIO, _minInset.y - _viewSize.height * INSET_RATIO); |
| 517 | } |
| 518 | } |
| 519 | |
| 520 | /** |
| 521 | * make sure all children go to the container |
no test coverage detected