TextArea PrefRowCount is not working at runtime

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: fx2.1
    • Component/s: 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


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

              Created:
              Updated:
              Resolved:
              Imported: