RT-33527: Style -fx-wrap-text worked only when set minWidth to control diff -r 0aad999d0017 -r 4c7d3641c342 modules/controls/src/main/java/com/sun/javafx/scene/control/skin/CheckBoxSkin.java --- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/CheckBoxSkin.java Fri Oct 11 15:47:15 2013 -0700 +++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/CheckBoxSkin.java Mon Oct 14 09:08:52 2013 -0700 @@ -58,7 +58,7 @@ } @Override protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) { - return super.computePrefWidth(height, topInset, rightInset, bottomInset, leftInset) + snapSize(box.minWidth(-1)); + return super.computeMinWidth(height, topInset, rightInset, bottomInset, leftInset) + snapSize(box.minWidth(-1)); } @Override protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) { diff -r 0aad999d0017 -r 4c7d3641c342 modules/controls/src/main/java/com/sun/javafx/scene/control/skin/RadioButtonSkin.java --- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/RadioButtonSkin.java Fri Oct 11 15:47:15 2013 -0700 +++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/RadioButtonSkin.java Mon Oct 14 09:08:52 2013 -0700 @@ -75,7 +75,7 @@ **************************************************************************/ @Override protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) { - return super.computePrefWidth(height, topInset, rightInset, bottomInset, leftInset) + snapSize(radio.minWidth(-1)); + return super.computeMinWidth(height, topInset, rightInset, bottomInset, leftInset) + snapSize(radio.minWidth(-1)); } @Override protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) {