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

Can't set preffered height via TextArea.setPrefRowCount()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: fx2.0.1
    • Fix Version/s: fx2.0.2
    • Component/s: javafx
    • Labels:
    • Environment:

      Win7 64-bit, jdk 7 64-bit, javafx 2.0.1 64-bit

      Description

      Calling of {{TextArea.setPrefRowCount(n)}} does not affect calculated control height.

      The simplest code example:
      {code}
          public void start(Stage primaryStage) {
              Group root = new Group();
              Scene scene = new Scene(root, 300, 250);

              TextArea test = new TextArea("text here");
              test.setPrefRowCount(1);
              root.getChildren().add(test);

              primaryStage.setScene(scene);
              primaryStage.show();
          }
      {code}
      Here control height is about 5 rows, when I want only 1 row.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: