mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user