mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-23 20:36:44 +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);
|
||||
}
|
||||
|
||||
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() {
|
||||
|
|
|
@ -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…
Reference in a new issue