JavaFX - ScrollPane with StackPane - StackPane's children not layouted when viewportBounds change
问题 So the main issue what i have is when clicking on a ScrollBar Button. The Viewport of the Scrollpane changes, but not the children (Node) of the pane. I have either to request the focus on the pane or click on the icon in the taskmenu, that the Viewport content get's refreshed. Swing does this automatically when you move the scrollbars. Is there another way to get this functionality working as described above and by code? The call requestFocus() seems strange to me. By the way: it highlights