get_content_height() issue in Godot 4 beta 13

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By megalukes

Hello everyone,

I’m having a big issue with Godot 4’s RichTextLabel. In 3.5, get_content_height would always return the full height of my content, without considering the visible_characters property. For instance, if I had like 4 lines worth of text, Godot would return the right height, no matter if visible_characters is set to 0 or full length. However, now in Godot 4, get_content_height only considers visible characters when calculating the height. So, if my visible_characters is set to 0, get_content_height returns 0 as height (or the parent control node’s minimum size). This is breaking my message system because I use dynamically sized containers and write dialogues character by character on the screen, so it’s virtually impossible to get the right height of a given message beforehand.

I’m trying to find a good solution for that, but since I understand Godot 4 is a bit hard to get support at the current version, I couldn’t find a lot of answers regarding this. Also, if any of the devs could point out whether this is an expected behavior, I’d really appreciate any help. I’m using beta 13. This was working normally in beta 4, the last time I checked.

Thank you in advance!

P.S.: get_line_count() has the same issue.