[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
This commit is contained in:
Léa Saviot
2020-07-06 17:40:46 +02:00
parent 1128134c37
commit 982b467268

View File

@@ -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);
}