The last line of text was lost when I use textArea.resizeHeightToCurrentText().
seasoningText.setWideTextAction(touchgfx::WIDE_TEXT_CHARWRAP_DOUBLE_ELLIPSIS);
seasoningText.setLinespacing(10);
seasoningText.setIndentation(5);
seasoningText.resizeHeightToCurrentText(); // When I comment out this line, I can see the newline content
seasoningText.invalidate();I use a textArea and switch off the "Auto-size" option, and put it in a scrollableContainer.
I want it to wrap automatically and adjust the height. But when I use the function "resizeHeightToCurrentText()", the second line is invisible.(When the text area is about to leave the screen, the second line appears)
If I don't use the function "resizeHeightToCurrentText()", the second line will always appear. But I don't know the current height of textArea.:sad_but_relieved_face:
So how can I use the use the function "resizeHeightToCurrentText()" normally?