let UI take space if window size is increased

This commit is contained in:
Armin Schrenk
2021-05-19 09:47:38 +02:00
parent cf13311665
commit c7ef0056f9
@@ -7,27 +7,30 @@
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.layout.StackPane?>
<VBox xmlns:fx="http://javafx.com/fxml"
xmlns="http://javafx.com/javafx"
fx:controller="org.cryptomator.ui.health.CheckListController"
minWidth="400"
maxWidth="400"
prefWidth="400"
minHeight="145"
spacing="12">
<padding>
<Insets topRightBottomLeft="12"/>
</padding>
<children>
<HBox spacing="12">
<VBox minWidth="80" spacing="6">
<HBox spacing="12" VBox.vgrow="ALWAYS">
<VBox minWidth="80" spacing="6" >
<Label fx:id="listHeading" text="Health checks"/>
<ListView fx:id="checksListView"/>
<ListView fx:id="checksListView" VBox.vgrow="ALWAYS"/>
</VBox>
<!-- Maybe use class Seperator ?-->
<fx:include source="/fxml/health_check_details.fxml" visible="${controller.anyCheckSelected}" managed="${controller.anyCheckSelected}"/>
<VBox alignment="CENTER" >
<Label text="TODO: Select a Check from the left list to get more info." wrapText="true" alignment="CENTER" visible="${!controller.anyCheckSelected}" managed="${!controller.anyCheckSelected}" />
</VBox>
<StackPane HBox.hgrow="ALWAYS">
<VBox minWidth="300" alignment="CENTER">
<Label text="TODO: Select a Check from the left list to get more info." wrapText="true" alignment="CENTER" visible="${!controller.anyCheckSelected}" />
</VBox>
<fx:include source="/fxml/health_check_details.fxml" visible="${controller.anyCheckSelected}" />
</StackPane>
</HBox>
<ButtonBar buttonMinWidth="120" buttonOrder="+CX">
<buttons>