From 982b467268f7853df612e85c466cc676fd7c3e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 6 Jul 2020 17:40:46 +0200 Subject: [PATCH] [apps/calculation] Fix scrolling If the last cell is too big to fit entirely, we would scroll to the top of the calculation, instead of the bottom --- apps/calculation/history_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/calculation/history_controller.cpp b/apps/calculation/history_controller.cpp index 159c36e8a..c8c153b6a 100644 --- a/apps/calculation/history_controller.cpp +++ b/apps/calculation/history_controller.cpp @@ -39,7 +39,7 @@ void HistoryController::reload() { * the table view twice. */ if (numberOfRows() > 0) { - m_selectableTableView.scrollToCell(0, numberOfRows()-1); + m_selectableTableView.scrollToBottom(); // Force to reload last added cell (hide the burger and exact output if necessary) tableViewDidChangeSelectionAndDidScroll(&m_selectableTableView, 0, numberOfRows()-1); }