From 93d687abc261d3c30a0a8e02d295465551ed2bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 1 Jun 2020 13:42:08 +0200 Subject: [PATCH] [apps/calculation] Fix height computation in additional results --- .../additional_outputs/scrollable_three_expressions_cell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/calculation/additional_outputs/scrollable_three_expressions_cell.cpp b/apps/calculation/additional_outputs/scrollable_three_expressions_cell.cpp index 3c77fb2ed..29fe03a9a 100644 --- a/apps/calculation/additional_outputs/scrollable_three_expressions_cell.cpp +++ b/apps/calculation/additional_outputs/scrollable_three_expressions_cell.cpp @@ -73,7 +73,8 @@ KDCoordinate ScrollableThreeExpressionsCell::Height(Calculation * calculation) { KDRect approximateSignFrame = KDRectZero; KDRect rightFrame = KDRectZero; cell.subviewFrames(&leftFrame, ¢erFrame, &approximateSignFrame, &rightFrame); - return leftFrame.unionedWith(centerFrame).unionedWith(rightFrame).height(); + KDRect unionedFrame = leftFrame.unionedWith(centerFrame).unionedWith(rightFrame); + return unionedFrame.height() + 2 * ScrollableThreeExpressionsView::k_margin; } void ScrollableThreeExpressionsCell::didBecomeFirstResponder() {