mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
terminal: set scrollbar to top if scrolled below new utxo table row count
This commit is contained in:
parent
ac7a964edf
commit
f88628c469
1 changed files with 3 additions and 0 deletions
|
@ -192,6 +192,9 @@ public class UtxosDialog extends WalletDialog {
|
|||
SparrowTerminal.get().getGuiThread().invokeLater(() -> {
|
||||
TableModel<TableCell> tableModel = getTableModel(walletUtxosEntry);
|
||||
utxos.setTableModel(tableModel);
|
||||
if(utxos.getRenderer().getViewTopRow() >= tableModel.getRowCount()) {
|
||||
utxos.getRenderer().setViewTopRow(0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue