-
Bug
-
Resolution: Not an Issue
-
P3
-
8
-
jdk 8.0 b93
CheckBox render incorrectly with multi lines string and alignment
@Override
public void start(Stage stage) throws Exception {
final CheckBox node = new CheckBox("First line\n Second line\nThird line");
node.setMinSize(200, 300);
BorderPane root = new BorderPane();
node.setStyle("-fx-alignment:bottom-right;-fx-border-color:red;");
root.setCenter(node);
Scene scene = new Scene(root);
stage.setScene(scene);
stage.show();
stage.setTitle(VersionInfo.getRuntimeVersion());
}
@Override
public void start(Stage stage) throws Exception {
final CheckBox node = new CheckBox("First line\n Second line\nThird line");
node.setMinSize(200, 300);
BorderPane root = new BorderPane();
node.setStyle("-fx-alignment:bottom-right;-fx-border-color:red;");
root.setCenter(node);
Scene scene = new Scene(root);
stage.setScene(scene);
stage.show();
stage.setTitle(VersionInfo.getRuntimeVersion());
}
- relates to
-
JDK-8125736 Checkbox and RadioButton: style -fx-alignment doesn't work with invocation setPrefSize
-
- Closed
-
-
JDK-8089583 CheckBox render inconsistency with style -fx-alignment:baseline-*
-
- Open
-