[apps/calculation] CanBeSingleLine differs if args are view/layout sizes

If the sizes are for layouts, we need to add the margins added by the
views.
This commit is contained in:
Léa Saviot
2020-05-19 16:42:28 +02:00
committed by EmilieNumworks
parent 4f50a72abf
commit 579485c8c0
7 changed files with 25 additions and 18 deletions

View File

@@ -214,7 +214,7 @@ KDCoordinate HistoryController::rowHeight(int j) {
HistoryViewCell::k_inputOutputViewsVerticalMargin,
j == selectedRow() && selectedSubviewType() == SubviewType::Output,
false,
&HistoryViewCell::CanBeSingleLine);
&HistoryViewCell::LayoutsCanBeSingleLine);
}
int HistoryController::typeAtLocation(int i, int j) {