[apps/calculation] Calculation::height has CanBeSingleLine argument

This commit is contained in:
Léa Saviot
2020-05-19 10:45:14 +02:00
committed by EmilieNumworks
parent 1c2801907f
commit 78cac6ddae
6 changed files with 16 additions and 9 deletions

View File

@@ -208,7 +208,7 @@ KDCoordinate HistoryController::rowHeight(int j) {
return 0;
}
Shared::ExpiringPointer<Calculation> calculation = calculationAtIndex(j);
return calculation->height(App::app()->localContext(), HistoryViewCell::k_verticalMargin, j == selectedRow() && selectedSubviewType() == SubviewType::Output, false);
return calculation->height(App::app()->localContext(), HistoryViewCell::k_verticalMargin, j == selectedRow() && selectedSubviewType() == SubviewType::Output, false, &HistoryViewCell::CanBeSingleLine);
}
int HistoryController::typeAtLocation(int i, int j) {