diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-01-27 12:05:21 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-01-27 12:05:21 +0200 |
commit | 0014f0233a8932dda1c47bcad7d3e79112332e38 (patch) | |
tree | fcf21cd6d44e9e062b3db6eb28a418bf330e235f /scene | |
parent | 899cd3442659f5208a08545b520ae6e6fe2552e7 (diff) |
[RTL] Fix min. height calculation when fit_content_height is enabled.
Diffstat (limited to 'scene')
-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(); } |