Binding TextArea height to its content

binding, javafx, layout, textarea

Solution

Have a look at JavaFX utility class. Although this is not a solution using binding, `computeTextHeight(Font font, String text, double wrappingWidth)` method can help you.

Problem

JavaFX: Is it possible to bind `TextArea` height (row count) to the height of its content? I would like to dynamically change height of `TextArea` while writing the text.

Original source

Related problems