diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-27 12:49:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 12:49:01 +0100 |
commit | a743bcef4dfaf97c128a245121709f5f23de7a25 (patch) | |
tree | 301a1b201e7922c0478b7c2912dcd92fb1ecb223 | |
parent | 4b36b6e92abea51baf8420e6c7dccd89a440bc59 (diff) | |
parent | 0014f0233a8932dda1c47bcad7d3e79112332e38 (diff) |
Merge pull request #57304 from bruvzg/fix_fit_content_height
-rw-r--r-- | scene/gui/rich_text_label.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index bc386e9813..e2e53b45f4 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -4353,7 +4353,7 @@ Size2 RichTextLabel::get_minimum_size() const { size.x += fixed_width; } - if (fixed_width != -1 || fit_content_height) { + if (fit_content_height) { const_cast<RichTextLabel *>(this)->_validate_line_caches(main); size.y += get_content_height(); } |