JDK-8123071 : HelloTextArea "Wrap Text" button doesn't do anything
  • Type: Bug
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • Submitted: 2013-06-04
  • Updated: 2015-06-17
  • Resolved: 2013-10-10
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
8Resolved
Related Reports
Relates :  
Description
Clicking on Wrap Text button has no effect until mouse is clicked inside the text area.
Comments
Works as expected now.
10-10-2013

Assigning to Mick to review the patch and push to the repo if he approves.
06-06-2013

The problem was in ScrollPaneSkin and was not visible before because of excessive requestLayout calls. ScrollPaneSkin should call requestLayout on viewContent, not viewRect when fitToWidth/fitToHeight changes. This is because it's viewContent that uses these properties internally for computations of nodeWidth/nodeHeight. As viewRect does only resize viewContent to getWidth()/getHeight() and as neither of width/height change, there's no need to relayout the viewContent then. Attaching the diff for Controls team to review.
06-06-2013

This also appears to be related to RT-30363.
06-06-2013