[apps/calculation] Fix height computation in additional results

This commit is contained in:
Léa Saviot
2020-06-01 13:42:08 +02:00
committed by EmilieNumworks
parent 884d9890cf
commit 93d687abc2

View File

@@ -73,7 +73,8 @@ KDCoordinate ScrollableThreeExpressionsCell::Height(Calculation * calculation) {
KDRect approximateSignFrame = KDRectZero;
KDRect rightFrame = KDRectZero;
cell.subviewFrames(&leftFrame, &centerFrame, &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() {