I have a ScrollPane anchored on the 4 sides of an AnchorPane so that when I resize the screen, the scroll also resizes. So I do not need to specify a fixed size. That's how it works.
The problem is that in this way the methods getPrefWidth()
, getWidth()
, getMinWidth()
, getMaxWidth()
do not return me the current scroll size.
Does anyone know how to get the size of the ScrollPane by defining its size by the anchor and not by the% size definition?