fix(ui): error dialog overflow. Closes #1677.

This commit is contained in:
huanghongxun
2022-09-03 22:44:38 +08:00
parent b17bac050b
commit 5e1ae56740

View File

@@ -1,15 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?import com.jfoenix.controls.JFXButton?>
<?import javafx.scene.control.Label?> <?import javafx.scene.control.Label?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import java.lang.String?> <?import java.lang.String?>
<?import javafx.geometry.Insets?>
<fx:root xmlns="http://javafx.com/javafx" <fx:root xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml" xmlns:fx="http://javafx.com/fxml"
type="StackPane"> type="StackPane">
<HBox spacing="8" styleClass="jfx-dialog-layout"> <BorderPane styleClass="jfx-dialog-layout">
<left>
<Label fx:id="graphic" translateX="10" translateY="10" minWidth="40" maxWidth="40" minHeight="40" maxHeight="40" /> <Label fx:id="graphic" translateX="10" translateY="10" minWidth="40" maxWidth="40" minHeight="40" maxHeight="40" />
<VBox HBox.hgrow="ALWAYS"> </left>
<center>
<VBox>
<BorderPane.margin>
<Insets left="8" />
</BorderPane.margin>
<HBox spacing="8">
<StackPane> <StackPane>
<styleClass> <styleClass>
<String fx:value="jfx-layout-heading" /> <String fx:value="jfx-layout-heading" />
@@ -17,9 +25,14 @@
</styleClass> </styleClass>
<Label fx:id="title" text="%message.info" /> <Label fx:id="title" text="%message.info" />
</StackPane> </StackPane>
<StackPane fx:id="content" styleClass="jfx-layout-body">
</StackPane>
<HBox fx:id="actions" styleClass="jfx-layout-actions" />
</VBox>
</HBox> </HBox>
<ScrollPane VBox.vgrow="ALWAYS" fitToWidth="true" fitToHeight="true">
<StackPane fx:id="content" styleClass="jfx-layout-body" />
</ScrollPane>
</VBox>
</center>
<bottom>
<HBox fx:id="actions" styleClass="jfx-layout-actions" />
</bottom>
</BorderPane>
</fx:root> </fx:root>