[apps/calculation][apps/shared]

AbstractScrollableExactApproximateExpressionsView children classes
reload scroll after reloading the subview selection when entering the
responder chain and when cell becomes first responder. We don't reload
scroll when setting content of cells as this is done every time we
relayout - when scrolling in the table for instance.
This commit is contained in:
Émilie Feral
2020-01-21 10:29:46 +01:00
committed by Léa Saviot
parent ef5681ec0b
commit 87e4836196
9 changed files with 28 additions and 12 deletions

View File

@@ -121,6 +121,13 @@ void SolutionsController::viewWillAppear() {
}
}
void SolutionsController::didEnterResponderChain(Responder * previousFirstResponder) {
// Select the most left present subview on all cells and reinitialize scroll
for (int i = 0; i < EquationStore::k_maxNumberOfExactSolutions; i++) {
m_exactValueCells[i].reinitSelection();
}
}
/* AlternateEmptyRowDelegate */
bool SolutionsController::isEmpty() const {