This apparently fixes the rendering issues when switching scenes, while keeping the stage size constant (unless the user resizes the stage).
55 lines
1.7 KiB
XML
55 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import javafx.geometry.Insets?>
|
|
<?import javafx.scene.control.Button?>
|
|
<?import javafx.scene.control.ListView?>
|
|
<?import javafx.scene.control.TitledPane?>
|
|
<?import javafx.scene.layout.HBox?>
|
|
<?import javafx.scene.layout.VBox?>
|
|
|
|
<VBox alignment="TOP_RIGHT" maxHeight="-Infinity" minHeight="400.0"
|
|
minWidth="500.0" xmlns="http://javafx.com/javafx/11.0.1"
|
|
xmlns:fx="http://javafx.com/fxml/1"
|
|
fx:controller="envoy.client.ui.controller.SettingsScene">
|
|
<children>
|
|
<HBox prefHeight="389.0" prefWidth="600.0">
|
|
<children>
|
|
<ListView id="message-list" fx:id="settingsList"
|
|
onMouseClicked="#settingsListClicked" prefHeight="200.0"
|
|
prefWidth="200.0">
|
|
<opaqueInsets>
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
</opaqueInsets>
|
|
<HBox.margin>
|
|
<Insets bottom="10.0" left="10.0" right="5.0" top="10.0" />
|
|
</HBox.margin>
|
|
<padding>
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
</padding>
|
|
</ListView>
|
|
<TitledPane fx:id="titledPane" collapsible="false"
|
|
prefHeight="400.0" prefWidth="400.0">
|
|
<HBox.margin>
|
|
<Insets bottom="10.0" left="5.0" right="10.0" top="10.0" />
|
|
</HBox.margin>
|
|
<padding>
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
</padding>
|
|
</TitledPane>
|
|
</children>
|
|
</HBox>
|
|
<Button defaultButton="true" mnemonicParsing="true"
|
|
onMouseClicked="#backButtonClicked" text="_Back">
|
|
<opaqueInsets>
|
|
<Insets />
|
|
</opaqueInsets>
|
|
<padding>
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
</padding>
|
|
<VBox.margin>
|
|
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
</VBox.margin>
|
|
</Button>
|
|
</children>
|
|
</VBox>
|