[escher] In table view, use scrollToContentRect instead of recomputing

everything

Change-Id: Idb3ec8218386b03bc34d08fcd888d1a671ea98f9
This commit is contained in:
Émilie Feral
2017-08-09 11:47:05 +02:00
parent 8e5691bcc7
commit 319955424b
3 changed files with 7 additions and 38 deletions

View File

@@ -145,6 +145,9 @@ void HistoryController::willDisplayCellForIndex(HighlightCell * cell, int index)
}
KDCoordinate HistoryController::rowHeight(int j) {
if (j >= m_calculationStore->numberOfCalculations()) {
return 0;
}
Calculation * calculation = m_calculationStore->calculationAtIndex(j);
KDCoordinate inputHeight = calculation->inputLayout()->size().height();
App * calculationApp = (App *)app();