Browse Source

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

bruvzg 3 năm trước cách đây
mục cha
commit
0014f0233a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scene/gui/rich_text_label.cpp

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