[apps] VariableBoxController: fix the row size to avoid overflowing the

maximal number of displayable rows
This commit is contained in:
Émilie Feral
2018-09-07 15:05:06 +02:00
committed by LeaNumworks
parent b784e7933a
commit 7b88770c15
2 changed files with 3 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ KDCoordinate VariableBoxController::ContentViewController::rowHeight(int index)
}
ExpressionLayout * expressionLayout = expressionLayoutForIndex(index);
if (expressionLayout) {
return expressionLayout->size().height()+k_leafMargin;
return max(expressionLayout->size().height()+k_leafMargin, Metric::ToolboxRowHeight);
}
return Metric::ToolboxRowHeight;
}