瀏覽代碼

more ui alignments

Armin Schrenk 4 年之前
父節點
當前提交
432be6dd80

+ 2 - 2
main/ui/src/main/resources/fxml/health_check_details.fxml

@@ -11,9 +11,9 @@
 	  spacing="6">
 	<Label fx:id="checkTitle" styleClass="label-large" text="${controller.taskName}"/>
 	<Text fx:id="checkDescription" styleClass="label" text="${controller.taskDescription}"/>
-	<TableView fx:id="resultsTableView" visible="${controller.producingResults}" managed="${controller.producingResults}">
+	<TableView fx:id="resultsTableView" visible="${controller.producingResults}" managed="${controller.producingResults}" VBox.vgrow="ALWAYS">
 		<columns>
-			<TableColumn fx:id="resultDescriptionColumn" text="Info" editable="false" maxWidth="Infinity"/>
+			<TableColumn fx:id="resultDescriptionColumn" text="Info" editable="false" maxWidth="Infinity" />
 			<TableColumn fx:id="resultSeverityColumn" text="Severity" editable="false" />
 			<TableColumn fx:id="resultActionColumn" text="Action" editable="false"/>
 		</columns>

+ 4 - 6
main/ui/src/main/resources/fxml/health_check_list.fxml

@@ -25,12 +25,10 @@
 				<ListView fx:id="checksListView" VBox.vgrow="ALWAYS"/>
 			</VBox>
 			<!-- Maybe use class Seperator ?-->
-			<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>
+			<VBox minWidth="300" alignment="CENTER" HBox.hgrow="ALWAYS" visible="${!controller.anyCheckSelected}" managed="${!controller.anyCheckSelected}" >
+				<Label text="TODO: Select a Check from the left list to get more info." wrapText="true" alignment="CENTER" />
+			</VBox>
+			<fx:include  source="/fxml/health_check_details.fxml" visible="${controller.anyCheckSelected}" managed="${controller.anyCheckSelected}" HBox.hgrow="ALWAYS" />
 		</HBox>
 		<ButtonBar buttonMinWidth="120" buttonOrder="+CX">
 			<buttons>