In javafx, Why new VBox().getChildren().add(node) and new VBox(node) caused different situation?
I have a ScrollPane for displaying content. When I set the content of the ScrollPane, I will bind its prefWidthProperty so that its prefWidth will be changed when the ScrollPane’s prefWidth changed.