mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-03-29 11:11:48 +01:00
terminal: set scrollbar to top if scrolled below new utxo table row count
This commit is contained in:
parent
ac7a964edf
commit
f88628c469
@ -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…
x
Reference in New Issue
Block a user