increase payments tab header width on send tab

This commit is contained in:
Craig Raw 2024-01-09 11:58:38 +02:00
parent be0ac52a09
commit 04c8017bb5

View file

@ -487,8 +487,8 @@ public class SendController extends WalletFormController implements Initializabl
}
public Tab getPaymentTab() {
OptionalInt highestTabNo = paymentTabs.getTabs().stream().mapToInt(tab -> Integer.parseInt(tab.getText())).max();
Tab tab = new Tab(Integer.toString(highestTabNo.isPresent() ? highestTabNo.getAsInt() + 1 : 1));
s OptionalInt highestTabNo = paymentTabs.getTabs().stream().mapToInt(tab -> Integer.parseInt(tab.getText().trim())).max();
Tab tab = new Tab(" " + (highestTabNo.isPresent() ? highestTabNo.getAsInt() + 1 : 1) + " ");
try {
FXMLLoader paymentLoader = new FXMLLoader(AppServices.class.getResource("wallet/payment.fxml"));