summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-27 12:05:21 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-27 12:05:21 +0200
commit0014f0233a8932dda1c47bcad7d3e79112332e38 (patch)
treefcf21cd6d44e9e062b3db6eb28a418bf330e235f /scene
parent899cd3442659f5208a08545b520ae6e6fe2552e7 (diff)
[RTL] Fix min. height calculation when fit_content_height is enabled.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/rich_text_label.cpp2
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();
}