[RTL] Fix min. height calculation when fit_content_height is enabled.

This commit is contained in:
bruvzg 2022-01-27 12:05:21 +02:00
parent 899cd34426
commit 0014f0233a
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38

View File

@ -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();
}