Browse Source

Merge pull request #57304 from bruvzg/fix_fit_content_height

Rémi Verschelde 3 years ago
parent
commit
a743bcef4d
1 changed files with 1 additions and 1 deletions
  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();
 	}