Browse Source

resize on initial scene change

terminal
Craig Raw 4 years ago
parent
commit
2fc01e0345
  1. 6
      src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java
  2. 6
      src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java

6
src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java

@ -77,7 +77,11 @@ public class TransactionController implements Initializable {
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() {

6
src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java

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

Loading…
Cancel
Save