mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
resize on initial scene change
This commit is contained in:
parent
650c3657a5
commit
2fc01e0345
2 changed files with 9 additions and 3 deletions
|
@ -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() {
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue