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

TextArea PrefRowCount is not working at runtime

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • fx2.1
    • javafx
    • None

      The TextArea may be set when I create the object by

      myTextArea.setPrefRowCount(i);

      with no problem, but if I use the "onKeyTyped" function and try to use

      myTextArea.setPrefRowCount(i);

      (so I can change its heigth in a way that it grows with the text it contains)

      myTextArea.setPrefHeight( (i*fontheight) + additionalheight );

      works well.

      It feels like the setPrefRowCount(int); only is used to get the prefHeight once (checked every variable and only the prefheight is not "updated".)

      If you got questions, feel free to ask.
      thx


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

              Created:
              Updated:
              Resolved:
              Imported: