mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
dynamically resize components on window height change
This commit is contained in:
parent
563252c823
commit
30215b0dac
3 changed files with 7 additions and 1 deletions
|
@ -80,6 +80,9 @@ public class TransactionController implements Initializable {
|
||||||
transactionMasterDetail.sceneProperty().addListener((observable, oldScene, newScene) -> {
|
transactionMasterDetail.sceneProperty().addListener((observable, oldScene, newScene) -> {
|
||||||
if(oldScene == null && newScene != null) {
|
if(oldScene == null && newScene != null) {
|
||||||
transactionMasterDetail.setDividerPosition(AppServices.isReducedWindowHeight(transactionMasterDetail) ? 0.9 : 0.82);
|
transactionMasterDetail.setDividerPosition(AppServices.isReducedWindowHeight(transactionMasterDetail) ? 0.9 : 0.82);
|
||||||
|
newScene.getWindow().heightProperty().addListener((observable1, oldValue, newValue) -> {
|
||||||
|
transactionMasterDetail.setDividerPosition(AppServices.isReducedWindowHeight(transactionMasterDetail) ? 0.9 : 0.82);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -341,6 +341,9 @@ public class SendController extends WalletFormController implements Initializabl
|
||||||
transactionDiagram.sceneProperty().addListener((observable, oldScene, newScene) -> {
|
transactionDiagram.sceneProperty().addListener((observable, oldScene, newScene) -> {
|
||||||
if(oldScene == null && newScene != null) {
|
if(oldScene == null && newScene != null) {
|
||||||
transactionDiagram.update(null);
|
transactionDiagram.update(null);
|
||||||
|
newScene.getWindow().heightProperty().addListener((observable1, oldValue, newValue) -> {
|
||||||
|
transactionDiagram.update(walletTransactionProperty.get());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
<?import javafx.scene.image.ImageView?>
|
<?import javafx.scene.image.ImageView?>
|
||||||
<?import javafx.scene.image.Image?>
|
<?import javafx.scene.image.Image?>
|
||||||
<StackPane prefHeight="420.0" prefWidth="600.0" stylesheets="@about.css, @general.css" fx:controller="com.sparrowwallet.sparrow.AboutController" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml">
|
<StackPane prefHeight="460.0" prefWidth="600.0" stylesheets="@about.css, @general.css" fx:controller="com.sparrowwallet.sparrow.AboutController" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml">
|
||||||
<VBox spacing="20">
|
<VBox spacing="20">
|
||||||
<HBox styleClass="title-area">
|
<HBox styleClass="title-area">
|
||||||
<HBox alignment="CENTER_LEFT">
|
<HBox alignment="CENTER_LEFT">
|
||||||
|
|
Loading…
Reference in a new issue