Improve proof of burn layout

This commit is contained in:
sqrrm 2020-05-05 17:16:07 +02:00
parent a731957aa7
commit a76fad8f39
No known key found for this signature in database
GPG key ID: 45235F9EF87089EC

View file

@ -190,8 +190,8 @@ public class ProofOfBurnView extends ActivatableView<GridPane, Void> implements
preImageTextField.setValidator(new InputValidator()); preImageTextField.setValidator(new InputValidator());
updateList(); updateList();
GUIUtil.setFitToRowsForTableView(myItemsTableView, 41, 28, 2, 4); GUIUtil.setFitToRowsForTableView(myItemsTableView, 41, 28, 4, 6);
GUIUtil.setFitToRowsForTableView(allTxsTableView, 41, 28, 2, 100); GUIUtil.setFitToRowsForTableView(allTxsTableView, 41, 28, 2, 10);
updateButtonState(); updateButtonState();
} }
@ -265,13 +265,12 @@ public class ProofOfBurnView extends ActivatableView<GridPane, Void> implements
.map(myProofOfBurn -> new MyProofOfBurnListItem(myProofOfBurn, proofOfBurnService, bsqFormatter)) .map(myProofOfBurn -> new MyProofOfBurnListItem(myProofOfBurn, proofOfBurnService, bsqFormatter))
.sorted(Comparator.comparing(MyProofOfBurnListItem::getDate).reversed()) .sorted(Comparator.comparing(MyProofOfBurnListItem::getDate).reversed())
.collect(Collectors.toList())); .collect(Collectors.toList()));
GUIUtil.setFitToRowsForTableView(myItemsTableView, 41, 28, 2, 4); GUIUtil.setFitToRowsForTableView(myItemsTableView, 41, 28, 4, 6);
allItemsObservableList.setAll(proofOfBurnService.getProofOfBurnTxList().stream() allItemsObservableList.setAll(proofOfBurnService.getProofOfBurnTxList().stream()
.map(tx -> new ProofOfBurnListItem(tx, proofOfBurnService, bsqFormatter)) .map(tx -> new ProofOfBurnListItem(tx, proofOfBurnService, bsqFormatter))
.collect(Collectors.toList())); .collect(Collectors.toList()));
GUIUtil.setFitToRowsForTableView(allTxsTableView, 41, 28, 2, 100); GUIUtil.setFitToRowsForTableView(allTxsTableView, 41, 28, 2, 10);
} }
private void updateButtonState() { private void updateButtonState() {