Hi I have following situation:
<ScrollPane xmlns:fx="http://javafx.com/fxml" fx:controller="MenuController" fx:id="menuPane" stylesheets="/fxml/styles/menu_style.css" fitToWidth="true" fitToHeight="true" hbarPolicy="ALWAYS" vbarPolicy="ALWAYS">
<VBox alignment="CENTER">
<HBox alignment="CENTER">
<VBox fx:id="menuView">
<elements></elements>
</VBox>
</HBox>
</VBox>
</ScrollPane>
It looks like this:
Full Screen with alignment
However when you make it smaller on width scrollpane is not working.
Resized with alignment
When I changed value of fitToWidth from true to false I get:
Full screen with scrolling
so there is no horizontal alignment to center. However scrolling is working:
Resized with scrolling
Is there a possibility to have alignment and scrolling working at the same time?
It is strange that height scrolling and vertical alignment are working properly.
Cannot add more than 2 picture, sorry for that.