You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
[RTL] Fix min. height calculation when fit_content_height is enabled.
This commit is contained in:
@@ -4353,7 +4353,7 @@ Size2 RichTextLabel::get_minimum_size() const {
|
|||||||
size.x += fixed_width;
|
size.x += fixed_width;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fixed_width != -1 || fit_content_height) {
|
if (fit_content_height) {
|
||||||
const_cast<RichTextLabel *>(this)->_validate_line_caches(main);
|
const_cast<RichTextLabel *>(this)->_validate_line_caches(main);
|
||||||
size.y += get_content_height();
|
size.y += get_content_height();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user