Bladeren bron

let UI take space if window size is increased

Armin Schrenk 4 jaren geleden
bovenliggende
commit
c7ef0056f9
1 gewijzigde bestanden met toevoegingen van 11 en 8 verwijderingen
  1. 11 8
      main/ui/src/main/resources/fxml/health_check_list.fxml

+ 11 - 8
main/ui/src/main/resources/fxml/health_check_list.fxml

@@ -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>