From 3168ec14c35b9cfe05637a38dfecdfa7bb2092aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 2 May 2019 11:45:14 +0200 Subject: [PATCH] [calculation] HistoryViewCell: fix layoutSubviews to fix weird scrolling When successively adding calculations 0.2 and int(x*exp(-4x), 0,99) the reloadScroll would fail --- apps/calculation/history_view_cell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/calculation/history_view_cell.cpp b/apps/calculation/history_view_cell.cpp index 204d3f6ec..f635a2270 100644 --- a/apps/calculation/history_view_cell.cpp +++ b/apps/calculation/history_view_cell.cpp @@ -129,7 +129,7 @@ void HistoryViewCell::layoutSubviews() { maxCoordinate(0, maxFrameWidth - outputSize.width()), inputSize.height(), minCoordinate(maxFrameWidth, outputSize.width()), - bounds().height() - inputSize.height() + outputSize.height() )); }