Merge pull request #57304 from bruvzg/fix_fit_content_height

This commit is contained in:
Rémi Verschelde 2022-01-27 12:49:01 +01:00 committed by GitHub
commit a743bcef4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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