TextEdit instance is too small?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By parser_101
Why my TextEdit instance is so small? I instantiated it with the following code:

func parsebegin(object):
var textedit = TextEdit.new()
textedit.text = "test"

What I have: https://ibb.co/SXDJr7c

:bust_in_silhouette: Reply From: exuin

I’m guessing that’s because you didn’t set the rect_min_size of your TextEdit, so it just gets shrunk as small as possible.