I’m programmatically creating TextArea in a Form with height AUTO that is inside ScrollBox with height 100%.
Something like this:
TextArea aTextArea = uiComponents.create(TextArea.class);
somestring contains text that has line breaks. I can count the number of rows with for example
With that I tried to SetRows(), however the height of the TextArea is not changing, it picks some default height value from somewhere. Experimented with various settings for height too.
I would need help with that so I can display the text in a visual component that has no vertical scrollbar, but adapts to the height of the text being contained within. It can be RichTextArea or ResizableTextArea too as long as I can setEditable(false)
It may be that there was already a discussion about this, but unfortunately, I can’t find it.