JDK-8119417 : ScrollPane not resizing content (Vbox)
  • Type: Bug
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-06-05
  • Updated: 2015-06-17
  • Resolved: 2013-06-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Blocks :  
Duplicate :  
Description
Please try rt-closed/texttest.complextext.ComplexText

This sample used to show all the content in the vbox properly inside the Scrollpane
Now the vbox is a pinhead. This started to happen to me after the last control scrum -> graphics scrum merge in.


Comments
Probably a duplicate of RT-30915. This issue there is the same. Scene is resize to pref width/height, not stretched to the JFXPanel size. Not sure what is the cause as it seems like before it was stretched, but Scene code calls resize on the root with pref width/height if the Scene is not explicitly sized.
06-06-2013

Not sure what you mean. I see the the full content of the VBox inside the ScrollPane. As the scrollPane is much smaller (at it's pref width/height of 100,100), it's placed in upper left corner of the scene and must be scrolled to see the content. Scene does keep it's children at it's preferred size unless scene's size is explicitly set in the constructor, which is not the case. Can you post an image of what you see or describe it more? Thanks.
06-06-2013

I just tested this issue before RT-30363 was applied, and again with that changeset applied. This appears to be the cause of this issue.
06-06-2013

May be related to RT-30363
06-06-2013