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

XMLWordPrintable

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

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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: