| 366 | } |
| 367 | |
| 368 | bool ScrollView::hasVisibleParents() const |
| 369 | { |
| 370 | auto parent = this->getParent(); |
| 371 | for (auto c = parent; c != nullptr; c = c->getParent()) |
| 372 | { |
| 373 | if (!c->isVisible()) |
| 374 | { |
| 375 | return false; |
| 376 | } |
| 377 | } |
| 378 | return true; |
| 379 | } |
| 380 | |
| 381 | void ScrollView::relocateContainer(bool animated) |
| 382 | { |
no test coverage detected