How do i change the height of a richtextlabel in script?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By stubbsy345
:warning: Old Version Published before Godot 3 was released.

I have a richtextlabel inside a patch9frame. The label contains dialogue and at times the the patch9frame is larger. I can easily change the size of the patch9frame but I don’t knwo how to set the height of the richtextlabel to change with it.

:bust_in_silhouette: Reply From: aozasori

In the editor, if you set the Rich Text Label’s anchor to Full Rect, its size will change whenever you resize its parent.
Look for the button with the green anchor on the scene window.