Merge pull request #66970 from timothyqiu/image-vcenter

[3.x] Center icons vertically in editor docs' hierarchy
This commit is contained in:
Rémi Verschelde 2022-10-06 17:37:17 +02:00
commit f329455b34
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ void EditorHelp::_add_type_icon(const String &p_type, int p_size) {
size.height *= ratio;
}
class_desc->add_image(icon, size.width, size.height);
class_desc->add_image(icon, size.width, size.height, RichTextLabel::INLINE_ALIGN_CENTER);
}
String EditorHelp::_fix_constant(const String &p_constant) const {