Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8115888

CheckBox render incorrectly with multi lines string and alignment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 8
    • 8
    • javafx
    • 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());
          }

        1. b91.png
          b91.png
          11 kB
        2. b93.png
          b93.png
          10 kB

            jgiles Jonathan Giles
            slugovoy Sergey Lugovoy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: