resize on initial scene change

This commit is contained in:
Craig Raw 2021-01-27 10:08:47 +02:00
parent 650c3657a5
commit 2fc01e0345
2 changed files with 9 additions and 3 deletions

View file

@ -77,7 +77,11 @@ public class TransactionController implements Initializable {
fetchOutputBlockTransactions(initialIndex, initialIndex + 1); fetchOutputBlockTransactions(initialIndex, initialIndex + 1);
} }
Platform.runLater(() -> transactionMasterDetail.setDividerPosition(AppServices.isReducedWindowHeight(transactionMasterDetail) ? 0.9 : 0.82)); transactionMasterDetail.sceneProperty().addListener((observable, oldScene, newScene) -> {
if(oldScene == null && newScene != null) {
transactionMasterDetail.setDividerPosition(AppServices.isReducedWindowHeight(transactionMasterDetail) ? 0.9 : 0.82);
}
});
} }
private void initializeTxTree() { private void initializeTxTree() {

View file

@ -338,8 +338,10 @@ public class SendController extends WalletFormController implements Initializabl
createButton.setDisable(walletTransaction == null || isInsufficientFeeRate()); createButton.setDisable(walletTransaction == null || isInsufficientFeeRate());
}); });
Platform.runLater(() -> { transactionDiagram.sceneProperty().addListener((observable, oldScene, newScene) -> {
transactionDiagram.update(null); if(oldScene == null && newScene != null) {
transactionDiagram.update(null);
}
}); });
} }