Closed henriiquecampos closed 5 years ago
I updated the behavior to force a size that fits the content vertically (only). As you can see it also forces the RichTextLabel
or the TextEdit
parents to fit their new rect, but when we undo the parent's rect isn't updated visually, we must refresh it manually (one way is to turn visibility on/off).
By the way I forgot to mention, but the shortcut for this operation is CTRL + R
Thanks, please ping me again when the PR's not WIP anymore
@NathanLovato I think is all good, just added a small docstring to describe it.
I started working on a solution to close #28 and this is how it is currently.
Currently it works on
Control.rect_size
so maybe this doesn't reflect its full intention, maybe it will be better to work onControl.rect_min_size
instead so theRichTextLabel
or theTextEdit
would make their parent fit their content instead of being clipped to the parent'srect
. If this is the case, lemme know.