i want the TextEdit change rect_size.y when then text increases. so i use the code
func _on_Control_text_changed():
rect_size.y = get_line_count()*line_min_y
but when i let 'wrap_enabled' be true(enables text wrapping when it goes beyond the edge of what is visible)
it has some problem,because the text wrapping is not a new line, Does not increase the count(get_line_count())
Is there any good way to solve my problem(the TextEdit change rect_size.y when then text increases.)
i need your help please,thanks a lot. BR.
In order to better illustrate the problem, I provide a demo as attach