I need to set the height of a scroll pane to the sum of heights of all the child elements in it. i.e i have a scroll pane and the content of the scroll pane is vbox. The vbox has many elements in it. I want to set the scroll pane height to sum of the height of the individual cell items in it. Please let me know.