Witam,
Mam problem z pozycjonowaniem kontenerów w JavaFX w pliku FXML. Chcę aby szary pasek, który jest na "dole" rzeczywiście dotykał dolnej krawędzi okna, a nie był odsunięty o te +- 40 pikseli. Nie wiem czy to wina AnchorPane czy VBox. Proszę o pomoc.
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<AnchorPane pickOnBounds="false" stylesheets="@../application.css" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.view.common.FooterController">
<children>
<VBox layoutX="10.0" layoutY="10.0" prefHeight="400.0" prefWidth="100.0" AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
<AnchorPane prefHeight="12.0" styleClass="toolbar" >
<children>
<HBox alignment="CENTER_RIGHT" spacing="15.0" AnchorPane.bottomAnchor="0.0" AnchorPane.rightAnchor="0.0">
<children>
<Label contentDisplay="CENTER" ellipsisString="" layoutX="265.0" layoutY="10.0" maxHeight="-Infinity" prefHeight="12.0" prefWidth="1.0" styleClass="separate-button" textOverrun="CENTER_ELLIPSIS" visible="false">
<opaqueInsets>
<Insets />
</opaqueInsets>
<font>
<Font size="1.0" />
</font>
</Label>
<Label contentDisplay="CENTER" text="Zalogowany uzytkownik:" visible="true">
<font>
<Font size="14.0" />
</font>
<HBox.margin>
<Insets right="-10.0" />
</HBox.margin>
</Label>
<Label fx:id="userLabel" contentDisplay="CENTER" layoutX="41.0" layoutY="25.0" text="" textFill="#0054a6" visible="true">
<font>
<Font name="System Bold" size="14.0" />
</font>
<HBox.margin>
<Insets />
</HBox.margin>
</Label>
<Label contentDisplay="CENTER" ellipsisString="" layoutX="25.0" layoutY="10.0" maxHeight="-Infinity" prefHeight="12.0" prefWidth="1.0" styleClass="separate-button" textOverrun="CENTER_ELLIPSIS">
<opaqueInsets>
<Insets />
</opaqueInsets>
<font>
<Font size="1.0" />
</font>
</Label>
<Label contentDisplay="CENTER" text="Adres serwera:" visible="true">
<font>
<Font size="14.0" />
</font>
<HBox.margin>
<Insets right="-10.0" />
</HBox.margin>
</Label>
<Label fx:id="databaseLabel" contentDisplay="CENTER" layoutX="41.0" layoutY="25.0" text="" textFill="#0054a6" visible="true">
<font>
<Font name="System Bold" size="14.0" />
</font>
<HBox.margin>
<Insets />
</HBox.margin>
</Label>
<Label contentDisplay="CENTER" ellipsisString="" layoutX="25.0" layoutY="10.0" maxHeight="-Infinity" prefHeight="12.0" prefWidth="1.0" styleClass="separate-button" textOverrun="CENTER_ELLIPSIS">
<opaqueInsets>
<Insets />
</opaqueInsets>
<font>
<Font size="1.0" />
</font>
</Label>
<Label contentDisplay="CENTER" text="Profil polaczenia:" visible="true">
<font>
<Font size="14.0" />
</font>
<HBox.margin>
<Insets right="-10.0" />
</HBox.margin>
</Label>
<Label fx:id="profileLabel" contentDisplay="CENTER" layoutX="41.0" layoutY="25.0" text="" textFill="#0054a6" visible="true">
<font>
<Font name="System Bold" size="14.0" />
</font>
<HBox.margin>
<Insets />
</HBox.margin>
</Label>
<Label contentDisplay="CENTER" ellipsisString="" layoutX="25.0" layoutY="10.0" maxHeight="-Infinity" prefHeight="12.0" prefWidth="1.0" styleClass="separate-button" textOverrun="CENTER_ELLIPSIS">
<opaqueInsets>
<Insets />
</opaqueInsets>
<font>
<Font size="1.0" />
</font>
</Label>
<Label contentDisplay="CENTER" layoutX="41.0" layoutY="25.0" text="Wersja aplikacji:">
<font>
<Font size="14.0" />
</font>
<HBox.margin>
<Insets right="-10.0" />
</HBox.margin>
</Label>
<Label fx:id="versionNoLabel" contentDisplay="CENTER" layoutX="41.0" layoutY="25.0" text="" textFill="#0054a6">
<font>
<Font name="System Bold" size="14.0" />
</font>
</Label>
<Label contentDisplay="CENTER" ellipsisString="" layoutX="258.0" layoutY="10.0" maxHeight="-Infinity" prefHeight="12.0" prefWidth="1.0" styleClass="separate-button" textOverrun="CENTER_ELLIPSIS">
<opaqueInsets>
<Insets />
</opaqueInsets>
<font>
<Font size="1.0" />
</font>
</Label>
<Label contentDisplay="CENTER" layoutX="274.0" layoutY="25.0" text="Commit:">
<font>
<Font size="14.0" />
</font>
<HBox.margin>
<Insets right="-10.0" />
</HBox.margin>
</Label>
<Label fx:id="commitLabel" contentDisplay="CENTER" layoutX="375.0" layoutY="25.0" text="" textFill="#0054a6">
<font>
<Font name="System Bold" size="14.0" />
</font>
</Label>
</children>
<padding>
<Insets left="15.0" right="15.0" />
</padding>
</HBox>
<Label contentDisplay="CENTER" layoutX="10.0" layoutY="10.0" text="Copyright © 2018; O&S Computer Soft" AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="2.0">
<font>
<Font size="14.0" />
</font>
</Label>
</children>
</AnchorPane>
</children>
</VBox>
</children>
</AnchorPane>