JDK-8123939 : Style -fx-wrap-text worked only when set minWidth to control
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-10-14
  • Updated: 2015-06-17
  • Resolved: 2013-10-15
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
Relates :  
Relates :  
Description
This is a sizing issue and is not related to the wrapText property.

The problem is that the computed value of minWidth equals the computed value of prefWidth, which wins over the smaller value given to setMaxWidth().

The computed minWidth should be based on that of LabeledSkinBase instead.

See also the discussion in RT-18309 about why a computed min value wins over a set max value.
Comments
Verified on 8.0b120.
31-12-2013

target build:b113
15-10-2013

Changeset: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/7aa32bd90b97
15-10-2013