Skip to content

Commit

Permalink
terminal: set scrollbar to top if scrolled below new utxo table row c…
Browse files Browse the repository at this point in the history
…ount
  • Loading branch information
craigraw committed Jul 18, 2023
1 parent ac7a964 commit f88628c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ private void updateHistory(WalletUtxosEntry walletUtxosEntry) {
SparrowTerminal.get().getGuiThread().invokeLater(() -> {
TableModel<TableCell> tableModel = getTableModel(walletUtxosEntry);
utxos.setTableModel(tableModel);
if(utxos.getRenderer().getViewTopRow() >= tableModel.getRowCount()) {
utxos.getRenderer().setViewTopRow(0);
}
});
}

Expand Down

0 comments on commit f88628c

Please sign in to comment.